Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Cache;
4
 
5
use Illuminate\Contracts\Cache\LockProvider;
6
 
7
class NullStore extends TaggableStore implements LockProvider
8
{
9
    use RetrievesMultipleKeys;
10
 
11
    /**
12
     * Retrieve an item from the cache by key.
13
     *
14
     * @param  string  $key
15
     * @return void
16
     */
17
    public function get($key)
18
    {
19
        //
20
    }
21
 
22
    /**
23
     * Store an item in the cache for a given number of seconds.
24
     *
25
     * @param  string  $key
26
     * @param  mixed  $value
27
     * @param  int  $seconds
28
     * @return bool
29
     */
30
    public function put($key, $value, $seconds)
31
    {
32
        return false;
33
    }
34
 
35
    /**
36
     * Increment the value of an item in the cache.
37
     *
38
     * @param  string  $key
39
     * @param  mixed  $value
40
     * @return bool
41
     */
42
    public function increment($key, $value = 1)
43
    {
44
        return false;
45
    }
46
 
47
    /**
48
     * Decrement the value of an item in the cache.
49
     *
50
     * @param  string  $key
51
     * @param  mixed  $value
52
     * @return bool
53
     */
54
    public function decrement($key, $value = 1)
55
    {
56
        return false;
57
    }
58
 
59
    /**
60
     * Store an item in the cache indefinitely.
61
     *
62
     * @param  string  $key
63
     * @param  mixed  $value
64
     * @return bool
65
     */
66
    public function forever($key, $value)
67
    {
68
        return false;
69
    }
70
 
71
    /**
72
     * Get a lock instance.
73
     *
74
     * @param  string  $name
75
     * @param  int  $seconds
76
     * @param  string|null  $owner
77
     * @return \Illuminate\Contracts\Cache\Lock
78
     */
79
    public function lock($name, $seconds = 0, $owner = null)
80
    {
81
        return new NoLock($name, $seconds, $owner);
82
    }
83
 
84
    /**
85
     * Restore a lock instance using the owner identifier.
86
     *
87
     * @param  string  $name
88
     * @param  string  $owner
89
     * @return \Illuminate\Contracts\Cache\Lock
90
     */
91
    public function restoreLock($name, $owner)
92
    {
93
        return $this->lock($name, 0, $owner);
94
    }
95
 
96
    /**
97
     * Remove an item from the cache.
98
     *
99
     * @param  string  $key
100
     * @return bool
101
     */
102
    public function forget($key)
103
    {
104
        return true;
105
    }
106
 
107
    /**
108
     * Remove all items from the cache.
109
     *
110
     * @return bool
111
     */
112
    public function flush()
113
    {
114
        return true;
115
    }
116
 
117
    /**
118
     * Get the cache key prefix.
119
     *
120
     * @return string
121
     */
122
    public function getPrefix()
123
    {
124
        return '';
125
    }
126
}