Clear the cache.
Delete a key from the cache.
Get a value from the cache. If the item has expired, it will be removed from the cache.
Check if a key exists in the cache.
set a value in the cache. If the cache size exceeds maxSize, the oldest item will be removed (FIFO). If ttl is set, the item will expire after ttl milliseconds.
Cache interface