mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
Added redis caching libraries and implemented for user by id caching.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using StackExchange.Redis.Extensions.Core.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Bit.Core
|
||||
@@ -11,6 +12,7 @@ namespace Bit.Core
|
||||
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
|
||||
public virtual MailSettings Mail { get; set; } = new MailSettings();
|
||||
public virtual LoggrSettings Loggr { get; set; } = new LoggrSettings();
|
||||
public virtual CacheSettings Cache { get; set; } = new CacheSettings();
|
||||
|
||||
public class SqlServerSettings
|
||||
{
|
||||
@@ -28,5 +30,11 @@ namespace Bit.Core
|
||||
public string LogKey { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
}
|
||||
|
||||
public class CacheSettings
|
||||
{
|
||||
public string ConnectionString { get; set; }
|
||||
public int Database { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user