Creates a new directory cache
Namespace: BrightstarDB.CachingAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
public DirectoryCache(
string directoryPath,
long cacheMaxSize,
ICacheEvictionPolicy cacheEvictionPolicy,
long highwaterMark = 0,
long lowwaterMark = 0
) |
Visual Basic |
---|
Public Sub New (
directoryPath As String,
cacheMaxSize As Long,
cacheEvictionPolicy As ICacheEvictionPolicy,
Optional highwaterMark As Long = 0,
Optional lowwaterMark As Long = 0
) |
Visual C++ |
---|
public:
DirectoryCache(
String^ directoryPath,
long long cacheMaxSize,
ICacheEvictionPolicy^ cacheEvictionPolicy,
long long highwaterMark = 0,
long long lowwaterMark = 0
) |
F# |
---|
new :
directoryPath : string *
cacheMaxSize : int64 *
cacheEvictionPolicy : ICacheEvictionPolicy *
?highwaterMark : int64 *
?lowwaterMark : int64
(* Defaults:
let _highwaterMark = defaultArg highwaterMark 0
let _lowwaterMark = defaultArg lowwaterMark 0
*)
-> DirectoryCache |
Parameters
- directoryPath
- Type: System..::..String
The path to the directory to contain the cache. The directory will be created if it does not already exist
- cacheMaxSize
- Type: System..::..Int64
The maximum size of the cache in bytes
- cacheEvictionPolicy
- Type: BrightstarDB.Caching..::..ICacheEvictionPolicy
The policy to use to maintain cache size
- highwaterMark (Optional)
- Type: System..::..Int64
The cache size (in bytes) above which the eviction policy will be applied
- lowwaterMark (Optional)
- Type: System..::..Int64
The cache size (in bytes) that the eviction policy will attempt to reduce the cache to when it runs
See Also