MCPcopy Create free account
hub / github.com/aptabase/aptabase / Get

Method Get

src/Features/Cache/CacheService.cs:22–27  ·  view source on GitHub ↗
(string key)

Source from the content-addressed store, hash-verified

20 }
21
22 public async Task<string?> Get(string key)
23 {
24 return await _db.Connection.ExecuteScalarAsync<string>(
25 "SELECT value FROM cache WHERE key = @key AND expires_at > now()",
26 new { key });
27 }
28
29 public async Task Set(string key, string value, TimeSpan ttl)
30 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected