Creates a new cache instance
Namespace: BrightstarDB.CachingAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
protected AbstractCache(
long cacheMaxSize,
ICacheEvictionPolicy cacheEvictionPolicy,
long highwaterMark = 0,
long lowwaterMark = 0
) |
Visual Basic |
---|
Protected Sub New (
cacheMaxSize As Long,
cacheEvictionPolicy As ICacheEvictionPolicy,
Optional highwaterMark As Long = 0,
Optional lowwaterMark As Long = 0
) |
Visual C++ |
---|
protected:
AbstractCache(
long long cacheMaxSize,
ICacheEvictionPolicy^ cacheEvictionPolicy,
long long highwaterMark = 0,
long long lowwaterMark = 0
) |
F# |
---|
new :
cacheMaxSize : int64 *
cacheEvictionPolicy : ICacheEvictionPolicy *
?highwaterMark : int64 *
?lowwaterMark : int64
(* Defaults:
let _highwaterMark = defaultArg highwaterMark 0
let _lowwaterMark = defaultArg lowwaterMark 0
*)
-> AbstractCache |
Parameters
- cacheMaxSize
- Type: System..::..Int64
The maximum size of the cache in bytes
- cacheEvictionPolicy
- Type: BrightstarDB.Caching..::..ICacheEvictionPolicy
The policy used to maintain cache size
- highwaterMark (Optional)
- Type: System..::..Int64
The cache size at which the cache eviction policy will be run
- lowwaterMark (Optional)
- Type: System..::..Int64
The size that the cache eviction policy will attempt to achieve after it has run
See Also