compatibility with ext-pq/master
[m6w6/pq-gateway] / lib / pq / Gateway / Table / CacheInterface.php
index 5e30fac7f84c7a6987f8bf43e460ee05643d6956..f36663f78b9976712ee14c9953441c6121b27a09 100644 (file)
@@ -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);
 }
 }