@@ 69-75 (lines=7) @@ | ||
66 | public function get($key, $cache_cb = NULL, &$cas_token = NULL) { |
|
67 | if (! $this->config['memcache']['enabled']) return false; |
|
68 | $this->debug->append("Trying to fetch key " . $this->getRound() . '_' . $this->config['memcache']['keyprefix'] . "$key from cache", 3); |
|
69 | if ($data = $this->cache->get($this->getRound() . '_' . $this->config['memcache']['keyprefix'].$key)) { |
|
70 | $this->debug->append("Found key in cache", 3); |
|
71 | return $data; |
|
72 | } else { |
|
73 | $this->debug->append("Key not found", 3); |
|
74 | } |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * As the static set call, we try to fetch static data here |
|
@@ 83-89 (lines=7) @@ | ||
80 | public function getStatic($key, $cache_cb = NULL, &$cas_token = NULL) { |
|
81 | if (! $this->config['memcache']['enabled']) return false; |
|
82 | $this->debug->append("Trying to fetch key " . $this->config['memcache']['keyprefix'] . "$key from cache", 3); |
|
83 | if ($data = $this->cache->get($this->config['memcache']['keyprefix'].$key)) { |
|
84 | $this->debug->append("Found key in cache", 3); |
|
85 | return $data; |
|
86 | } else { |
|
87 | $this->debug->append("Key not found", 3); |
|
88 | } |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * Another wrapper, we want to store data in memcache and return the actual data |