Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IBitBucket Struct Reference

Inheritance diagram for IBitBucket:

FileBucket List of all members.

Public Member Functions

int getBufferSize ()
long length ()
void[] get (char[] key)
void remove (char[] key)
void put (char[] key, void[] data)

Detailed Description

IBitBucket implements a simple mechanism to store and recover a large quantity of data for the duration of the hosting process. It is intended to act as a local-cache for a remote data-source, or as a spillover area for large in-memory cache instances.

Note that any and all stored data is rendered invalid the moment an IBucket object is garbage-collected.

All index keys must be unique. Writing to an IBitBucket with an existing key will overwrite any previous content.

Definition at line 52 of file IBitBucket.d.


Member Function Documentation

int getBufferSize  ) 
 

Return the record-size in use for this IBitBucket

Reimplemented in FileBucket.

Referenced by VirtualCache::this().

long length  ) 
 

Return the currently populated size of this IBitBucket

Reimplemented in FileBucket.

void [] get char[]  key  ) 
 

Return the serialized data for the provided key. Returns null if the key was not found.

Reimplemented in FileBucket.

Referenced by VirtualCache::get().

void remove char[]  key  ) 
 

Remove the provided key from this IBitBucket.

Reimplemented in FileBucket.

Referenced by VirtualCache::extract().

void put char[]  key,
void[]  data
 

Write a serialized block of data, and associate it with the provided key. All keys must be unique, and it is the responsibility of the programmer to ensure this. Reusing an existing key will overwrite previous data.

Reimplemented in FileBucket.

Referenced by VirtualCache::put().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 7 19:07:04 2004 for Mango by doxygen 1.3.6