maestral.utils.caches ===================== .. py:module:: maestral.utils.caches .. autoapi-nested-parse:: Module containing cache implementations. Module Contents --------------- .. py:class:: LRUCache(capacity) A simple LRU cache implementation :param capacity: Maximum number of entries to keep. .. py:attribute:: capacity .. py:method:: get(key) Get the cached value for a key. Mark as most recently used. :param key: Key to query. :returns: Cached value or None. .. py:method:: put(key, value) Set the cached value for a key. Mark as most recently used. :param key: Key to use. Must be hashable. :param value: Value to cache. .. py:method:: clear() Clears the cache.