compatibility with ext-pq/master
[m6w6/pq-gateway] / lib / pq / Gateway / Table / CacheInterface.php
index c06b11b0f56e486fdd5534e1dfbd09ee17726e0b..f36663f78b9976712ee14c9953441c6121b27a09 100644 (file)
@@ -2,6 +2,9 @@
 
 namespace pq\Gateway\Table;
 
+/**
+ * @codeCoverageIgnore
+ */
 interface CacheInterface
 {
        /**
@@ -27,4 +30,18 @@ interface CacheInterface
         * @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);
 }