Implement a cache for frequently accessed model elements with least-recently-used eviction.
Use the signature def lru_cache_operations(capacity, operations):. Each operation is either ["put", key, value] or ["get", key], where keys are strings and values are integers. Return a list containing the result of every get operation, using None for a missing key. A successful get and every put mark the key as most recently used. Updating an existing key must not increase the cache size. When inserting into a full cache, evict the least recently used key.
def lru_cache_operations(capacity, operations):