C# 클래스 BB.Caching.Cache

Contains the core methods for caching data in memory, redis, or both.
파일 보기 프로젝트 열기: JesseBuesking/BB.Caching

공개 메소드들

메소드 설명
LoadFromConfig ( ConfigurationSection section = null, bool establishConnections = true ) : List

Loads BB.Caching settings from you app config file, or from the section supplied.

Prepare ( ) : void

Calls any necessary preparation logic by the caching system. Before calling this, you need to either: 1. Programmatically set up your connections before calling this, manually adding connection groups by calling SharedCache.Instance.AddRedisConnectionGroup(...); 2. Call Cache.LoadFromConfig(...) to load your settings from a configuration file.

메소드 상세

LoadFromConfig() 공개 정적인 메소드

Loads BB.Caching settings from you app config file, or from the section supplied.
public static LoadFromConfig ( ConfigurationSection section = null, bool establishConnections = true ) : List
section System.Configuration.ConfigurationSection /// An optional to load configuration data from. If this is left as null, /// the method will try to load your configuration settings from the current projects app config file. ///
establishConnections bool /// Talks with the redis instances defined in the connection strings to establish connections. Testing classes /// will set this to false. ///
리턴 List

Prepare() 공개 정적인 메소드

Calls any necessary preparation logic by the caching system. Before calling this, you need to either: 1. Programmatically set up your connections before calling this, manually adding connection groups by calling SharedCache.Instance.AddRedisConnectionGroup(...); 2. Call Cache.LoadFromConfig(...) to load your settings from a configuration file.
public static Prepare ( ) : void
리턴 void