Hypothesis stateful testing against a TTL-LRU cache, Python. Build lru ttl.py: class TTLCache(capacity, ttl…
Hypothesis stateful testing against a TTL-LRU cache, Python. Build lru ttl.py: class TTLCache(capacity, ttl…: a task in traj2envs-rl: RL tasks generated with traj2envs (Harbor dataset). class TTLCache: def init (self, capacity, ttl, clock=time.monotonic): ... def get(self, key, default=None): …
The task
class TTLCache: def __init__(self, capacity, ttl, clock=time.monotonic): ... def get(self, key, default=None): ... def put(self, key, value): ... def __len__(self): ... def __contains__(self, key): ... ```
Part of harness-hub/traj2envs-rl.