Solve a standard data structures problem using Python.
Implement an LRU cache supporting get and put operations in O(1) average time. The function receives a capacity and operation list, then returns the result of every get operation, using -1 for missing keys.
Signature: def lru_cache_operations(capacity, operations):. Each operation is ['get', key] or ['put', key, value]; keys and values are integers.
def lru_cache_operations(capacity, operations):