Summary
Caching storage adapter to cache db4o database data in memory
until the underlying
You can override the
Db4objects.Db4o.IO.IBin
is instructed to flush its
data when
Db4objects.Db4o.IO.IBin.Sync
is called.You can override the
Db4objects.Db4o.IO.CachingStorage.NewCache
method if you want to
work with a different caching strategy.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .IO - Interfaces
- Base Types
-
- Object
- StorageDecorator
graph BT
Type-->Base0["StorageDecorator"]
click Base0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/StorageDecorator"
Base0-->Base1["Object"]
Type-.->Interface0["IStorage"]
click Interface0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/IStorage"
Type["CachingStorage"]
class Type type-node
Syntax
public class CachingStorage : StorageDecorator, IStorage
Constructors
Name | Summary |
---|---|
CachingStorage |
constructor to set up a CachingStorage with a configured page count and page size |
CachingStorage |
default constructor to create a Caching storage with the default page count of 64 and the default page size of 1024. |
Fields
Name | Constant Value | Summary |
---|---|---|
_storage |
Inherited from StorageDecorator
|
Methods
Name | Value | Summary |
---|---|---|
Decorate |
IBin |
Inherited from StorageDecorator
|
Delete |
void |
Inherited from StorageDecorator
|
Exists |
bool |
Inherited from StorageDecorator
|
NewCache |
ICache4 |
override this method if you want to work with a different caching
strategy than the default LRU2Q cache.
|
Open |
IBin |
opens a Bin for the given URI.
|
Rename |
void |
Inherited from StorageDecorator
|