Реализует интерфейс для управления кэшем в памяти.
Inheritance
System.Object
InMemoryCache
Namespace:InfinniPlatform.Cache
Assembly:InfinniPlatform.Cache.Memory.dll
public class InMemoryCache : object, IInMemoryCache, IDisposable
Constructors
|
Improve this Doc
View Source
Declaration
Methods
|
Improve this Doc
View Source
Declaration
public bool Contains(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
Declaration
public string Get(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public bool Remove(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public void Set(string key, string value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
value |
|
|
Improve this Doc
View Source
Declaration
public bool TryGet(string key, out string value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods