mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-31 17:28:39 +00:00
Enable thread theft prevention for redis
This commit is contained in:
parent
c34b7f3e79
commit
c03c9cdf2c
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ using LBPUnion.ProjectLighthouse.Types.Users;
|
|||
using Redis.OM;
|
||||
using Redis.OM.Contracts;
|
||||
using Redis.OM.Searching;
|
||||
using StackExchange.Redis;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.StorableLists;
|
||||
|
||||
|
@ -20,6 +21,7 @@ public static class RedisDatabase
|
|||
|
||||
static RedisDatabase()
|
||||
{
|
||||
ConnectionMultiplexer.SetFeatureFlag("preventthreadtheft", true);
|
||||
provider = new RedisConnectionProvider(ServerConfiguration.Instance.RedisConnectionString);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue