Sobes.tech
Junior — Senior

LRU cache library for external use

livecode

Task condition

A module that implements a cache with a "least recently used" policy needs to be created. The library should have two public methods: Get(key) — returns the value associated with the given key (or indicates absence), and Put(key, value) — inserts a new key-value pair or updates an existing one, removing the "oldest" element when overflowing to maintain a limited cache size.