Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PersistingStoreInterface.php

interface PersistingStoreInterface

@author Jérémy Derussé <jeremy@derusse.com>

Hierarchy

  • interface \Symfony\Component\Lock\PersistingStoreInterface

Expanded class hierarchy of PersistingStoreInterface

All classes that implement PersistingStoreInterface

7 files declare their use of PersistingStoreInterface
CombinedStore.php in vendor/symfony/lock/Store/CombinedStore.php
DoctrineDbalStore.php in vendor/symfony/lock/Store/DoctrineDbalStore.php
MemcachedStore.php in vendor/symfony/lock/Store/MemcachedStore.php
MongoDbStore.php in vendor/symfony/lock/Store/MongoDbStore.php
PdoStore.php in vendor/symfony/lock/Store/PdoStore.php

... See full list

File

vendor/symfony/lock/PersistingStoreInterface.php, line 21

Namespace

Symfony\Component\Lock
View source
interface PersistingStoreInterface {
    
    /**
     * Stores the resource if it's not locked by someone else.
     *
     * @throws LockAcquiringException
     * @throws LockConflictedException
     */
    public function save(Key $key) : void;
    
    /**
     * Removes a resource from the storage.
     *
     * @throws LockReleasingException
     */
    public function delete(Key $key) : void;
    
    /**
     * Returns whether or not the resource exists in the storage.
     */
    public function exists(Key $key) : bool;
    
    /**
     * Extends the TTL of a resource.
     *
     * @param float $ttl amount of seconds to keep the lock in the store
     *
     * @throws LockConflictedException
     */
    public function putOffExpiration(Key $key, float $ttl) : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
PersistingStoreInterface::delete public function Removes a resource from the storage. 13
PersistingStoreInterface::exists public function Returns whether or not the resource exists in the storage. 13
PersistingStoreInterface::putOffExpiration public function Extends the TTL of a resource. 13
PersistingStoreInterface::save public function Stores the resource if it&#039;s not locked by someone else. 13

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal