feat: import/export settings, send backup of settings when leaving guild
This commit is contained in:
parent
e6d68338db
commit
db5d7bb4f8
18 changed files with 392 additions and 39 deletions
|
|
@ -44,6 +44,9 @@ public class RedisService(Config config)
|
|||
await GetDatabase().StringSetAsync(key, json, expiry);
|
||||
}
|
||||
|
||||
public async Task DeleteAsync(string[] keys) =>
|
||||
await GetDatabase().KeyDeleteAsync(keys.Select(k => new RedisKey(k)).ToArray());
|
||||
|
||||
public async Task<T?> GetAsync<T>(string key)
|
||||
{
|
||||
var value = await GetDatabase().StringGetAsync(key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue