Interface Lockable

    • Method Detail

      • lock

        boolean lock​(TimeSpan timeout)
        Acquire a lock on an collection in cache.
        Parameters:
        timeout - The timeout after which lock will be automatically released.
        Returns:
        True if lock was acquired successfully;otherwise false.
      • unlock

        void unlock()
        Unlock a locked collection