Showing
2 changed files
with
10 additions
and
0 deletions
@@ -122,6 +122,11 @@ class Memcache extends Root implements CacheInterface | @@ -122,6 +122,11 @@ class Memcache extends Root implements CacheInterface | ||
122 | return $this->init()->get($this->_makeTag() . $key, $flags); | 122 | return $this->init()->get($this->_makeTag() . $key, $flags); |
123 | } | 123 | } |
124 | 124 | ||
125 | + public function getBy($key, $cacheCb = null, &$casToken = null) | ||
126 | + { | ||
127 | + return $this->init()->get($key, $cacheCb, $casToken); | ||
128 | + } | ||
129 | + | ||
125 | /** | 130 | /** |
126 | * 向一个新的key下面增加一个元素 | 131 | * 向一个新的key下面增加一个元素 |
127 | * @param $key | 132 | * @param $key |
@@ -167,6 +167,11 @@ class Memcached extends Root implements CacheInterface | @@ -167,6 +167,11 @@ class Memcached extends Root implements CacheInterface | ||
167 | return $this->init()->get($this->_makeTag() . $key, $cacheCb, $casToken); | 167 | return $this->init()->get($this->_makeTag() . $key, $cacheCb, $casToken); |
168 | } | 168 | } |
169 | 169 | ||
170 | + public function getBy($key, $cacheCb = null, &$casToken = null) | ||
171 | + { | ||
172 | + return $this->init()->get($key, $cacheCb, $casToken); | ||
173 | + } | ||
174 | + | ||
170 | /** | 175 | /** |
171 | * 向一个新的key下面增加一个元素 | 176 | * 向一个新的key下面增加一个元素 |
172 | * @param $key | 177 | * @param $key |
-
Please register or login to post a comment