(string key)
| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected