Sobes.tech
Back to tasks
Junior — Senior
225

Thread‑safe in‑memory cache with Get/Set operations

Companies where asked:
OZONOZON

Task condition

livecode

Необходимо реализовать потокобезопасный вариант интерфейса Cache.

type Cache interface {
    Set(key, value string)
    Get(key string) (value string, ok bool)
}