1
0
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:
Kyle Spearrin
2016-06-17 17:42:22 -04:00
parent df94150848
commit 1ff49cd5b3
9 changed files with 109 additions and 34 deletions

View File

@@ -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; }
}
}
}