projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
compatibility with ext-pq/master
[m6w6/pq-gateway]
/
lib
/
pq
/
Gateway
/
Table
/
CacheInterface.php
diff --git
a/lib/pq/Gateway/Table/CacheInterface.php
b/lib/pq/Gateway/Table/CacheInterface.php
index 5e30fac7f84c7a6987f8bf43e460ee05643d6956..f36663f78b9976712ee14c9953441c6121b27a09 100644
(file)
--- a/
lib/pq/Gateway/Table/CacheInterface.php
+++ b/
lib/pq/Gateway/Table/CacheInterface.php
@@
-30,4
+30,18
@@
interface CacheInterface
* @return \pq\Gateway\Table\CacheInterface
*/
function del($key);
* @return \pq\Gateway\Table\CacheInterface
*/
function del($key);
+
+ /**
+ * Lock an item
+ * @param string $key
+ * @return \pq\Gateway\Table\CacheInterface
+ */
+ function lock($key);
+
+ /**
+ * Unlock an item
+ * @param string $key
+ * @return \pq\Gateway\Table\CacheInterface
+ */
+ function unlock($key);
}
}