* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Lock; use Symfony\Component\Lock\Exception\LockConflictedException; use Symfony\Component\Lock\Exception\NotSupportedException; /** * StoreInterface defines an interface to manipulate a lock store. * * @author Jérémy Derussé */ interface StoreInterface { /** * Stores the resource if it's not locked by someone else. * * @throws LockConflictedException */ public function save(Key $key); /** * Waits until a key becomes free, then stores the resource. * * If the store does not support this feature it should throw a NotSupportedException. * * @throws LockConflictedException * @throws NotSupportedException */ public function waitAndSave(Key $key); /** * Extends the ttl of a resource. * * If the store does not support this feature it should throw a NotSupportedException. * * @param float $ttl amount of second to keep the lock in the store * * @throws LockConflictedException * @throws NotSupportedException */ public function putOffExpiration(Key $key, $ttl); /** * Removes a resource from the storage. */ public function delete(Key $key); /** * Returns whether or not the resource exists in the storage. * * @return bool */ public function exists(Key $key); } __halt_compiler();----SIGNATURE:----nkZOsx9bTt3PtYfurxwr1xVGW9iFwuR3ZmwHSCpGBwyAAPmPVjqZ8BwAyF4D5ju/zhwaD7k59+pBxlHIJryXSX1NxPKzZKgVkos9Yyo8ysEfJT4/zR9rNEhJiKwM+iEX9ESvY18SK3NBsk70MjweIwSvXPPNa60Wp9kIEMc4jDeKo0REqzVKn41aTvcsE4mU7o4aNgAzO4qRr0KpUIkTv7rf20iQtZTIFuD+ImEIvUQVYVlTR6+ppzt12nMgbgKxiP48zSuDwPcWcWuGZWnPHnxI743rZgDEeTgFLq/uuFF1qNl1dMxOdJtFBTXBiKCWtPXj0+j1PM2TbTNzGGHf5ngUZfn5MUgFiqCbIRQ9sVqrGJyMLKHpZf2KlAmhGHwRiWG2UaBnLyoiSuBztKCoUtpORQE6caeG16/r1+xLfIRYlsz0TVIxPKypBkyb5KrTwDva7GT/WmyNd5Uizcsut1Dy+rx3tpqangDmex9OVxSna7ORrUltrtXDVgsWnlWKa+1MHWBemv1wphWfJoWoHDU6obF5OGIbQ6QibOBZsL/5bPEOPABhO3HnPdfly7dcTMg6VclPibhA9vkshhKtINIB4eYRdg6lJjiXmTlB8z5cAn9OX4PaU+OLqie1H0SJatq80o1UPn/q2xHSxP3D/MqTEH6GXlLr1ogCXDNzfCg=----ATTACHMENT:----NzAxNDE4MzQ0MjAwNjAzNCAzMDc2NzQ2MDgzNjE0NzMzIDI5NDM5NzY0MTQ4MjE0ODg=