mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-05 21:37:55 +00:00
feat: use redis cache for non-id message lookups
This commit is contained in:
parent
bf7747ab34
commit
e9673a6704
9 changed files with 75 additions and 29 deletions
|
|
@ -20,12 +20,7 @@ namespace PluralKit.API;
|
|||
[Route("private")]
|
||||
public class PrivateController: PKControllerBase
|
||||
{
|
||||
private readonly RedisService _redis;
|
||||
|
||||
public PrivateController(IServiceProvider svc) : base(svc)
|
||||
{
|
||||
_redis = svc.GetRequiredService<RedisService>();
|
||||
}
|
||||
public PrivateController(IServiceProvider svc) : base(svc) { }
|
||||
|
||||
[HttpGet("meta")]
|
||||
public async Task<ActionResult<JObject>> Meta()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue