The core cache.Cache API on the in-process cache-mem backend. No HTTP, no external services.
go run .memcache.New(...)constructs an in-process cache;defer c.Close().Set/Getround-trip,Haspresence check,TTLintrospection.- The
cache.ErrNotFoundcontract: a miss returns(nil, cache.ErrNotFound), never(nil, nil)— check it witherrors.Is. Delremoves a key; a subsequentGetisErrNotFound.
Lines for each operation ending in OK, exit code 0.