Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 16... Línea 16...
16
    public function get($key)
16
    public function get($key)
17
    {
17
    {
18
        return $this->cache->fetch($key);
18
        return $this->cache->fetch($key);
19
    }
19
    }
Línea -... Línea 20...
-
 
20
 
-
 
21
    /**
-
 
22
     * @return mixed
20
 
23
     */
21
    public function fetch($key)
24
    public function fetch($key)
22
    {
25
    {
23
        return $this->get($key);
26
        return $this->get($key);
Línea 24... Línea 27...
24
    }
27
    }
25
 
28
 
26
    public function set($key, $value, $ttl = 0)
29
    public function set($key, $value, $ttl = 0)
27
    {
30
    {
Línea -... Línea 31...
-
 
31
        return $this->cache->save($key, $value, $ttl);
-
 
32
    }
-
 
33
 
28
        return $this->cache->save($key, $value, $ttl);
34
    /**
29
    }
35
     * @return bool
30
 
36
     */
31
    public function save($key, $value, $ttl = 0)
37
    public function save($key, $value, $ttl = 0)
Línea 32... Línea 38...
32
    {
38
    {
33
        return $this->set($key, $value, $ttl);
39
        return $this->set($key, $value, $ttl);
34
    }
40
    }
35
 
41
 
Línea -... Línea 42...
-
 
42
    public function remove($key)
-
 
43
    {
-
 
44
        return $this->cache->delete($key);
36
    public function remove($key)
45
    }
37
    {
46
 
38
        return $this->cache->delete($key);
47
    /**
39
    }
48
     * @return bool
Línea -... Línea 49...
-
 
49
     */
-
 
50
    public function delete($key)
-
 
51
    {
40
 
52
        return $this->remove($key);
41
    public function delete($key)
53
    }
42
    {
54
 
43
        return $this->remove($key);
55
    /**
Línea -... Línea 56...
-
 
56
     * @return bool
-
 
57
     */
-
 
58
    public function contains($key)
44
    }
59
    {
45
 
60
        return $this->cache->contains($key);
46
    public function contains($key)
61
    }
47
    {
62
 
48
        return $this->cache->contains($key);
63
    /**