CachingStorage Class

Summary

Caching storage adapter to cache db4o database data in memory until the underlying 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
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(IStorage, int, int) constructor to set up a CachingStorage with a configured page count and page size
CachingStorage(IStorage) 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(BinConfiguration, IBin) IBin
Inherited from StorageDecorator
Delete(string) void
Inherited from StorageDecorator
Exists(string) 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(BinConfiguration) IBin
opens a Bin for the given URI.
Rename(string, string) void
Inherited from StorageDecorator