kDefaultTimestampPolicy = fTimeStampOnCreate | fTimeStampOnRead |
105fTrackSubKey | fPurgeOnStartup
131 voidSetMemBufferSize(
unsigned intbuf_size);
137 unsigned inttimeout,
138 unsigned intmax_timeout = 0);
141 virtual intGetTimeout()
const;
143 virtual boolIsOpen()
const;
149 virtual voidStore(
const string&
key,
154 unsigned inttime_to_live = 0,
157 virtual size_tGetSize(
const string&
key,
161 virtual voidGetBlobOwner(
const string&
key,
166 virtual bool Read(
const string&
key,
172 virtual IReader* GetReadStream(
const string&
key,
176 virtual IReader* GetReadStream(
const string&
key,
185 virtual voidGetBlobAccess(
const string&
key,
197 virtual IWriter* GetWriteStream(
const string&
key,
200 unsigned inttime_to_live = 0,
203 virtual voidRemove(
const string&
key);
205 virtual voidRemove(
const string&
key,
209 virtualtime_t GetAccessTime(
const string&
key,
213 virtual boolHasBlobs(
const string&
key,
216 virtual voidPurge(time_t access_timeout);
218 virtual voidPurge(
const string&
key,
220time_t access_timeout);
222 virtual boolSameCacheParams(
const TCacheParams* params)
const;
223 virtual stringGetCacheName(
void)
const;
230 voidStoreSynchronous(
const string&
key,
308 voidx_SetTimestamp(
const string&
key,
int version,
const string&
subkey);
thread for delayed writes
SQLITE3 cache implementation.
SQLITE3 ICache exception.
Reallocable memory buffer (no memory copy overhead) Mimics vector<>, without the overhead of explicit...
Thread-safe queue object with a blocking mechanism.
definition of a Culling tree
BLOB cache read/write/maintenance interface.
EKeepVersions
If to keep already cached versions of the BLOB when storing another version of it (not necessarily a ...
int TFlags
Bitwise OR of "EFlags" flags.
EBlobVersionValidity
BLOB version existence and validity â from the point of view of the underlying cache implementation.
int TTimeStampFlags
Holds a bitwise OR of "ETimeStampFlags".
A very basic data-read interface.
A very basic data-write interface.
int Main(int argc, const char *argv[])
static void DLIST_NAME() remove(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
CRef< CWriterThread > m_WriterThread
struct sqlite3 TSqliteDb
sqlite3 database handle
unique_ptr< CSQLITE3_Statement > m_Stmt_Store
precompiled statements these are used to speed up time-critical accesses
CSyncQueue< CRef< SWriteRequest > > TWriteQueue
queue for delayed writes
const string & GetDatabase() const
Get DB name/path.
CSQLITE3_Cache(const CSQLITE3_Cache &)
void SQLITE3_Register_Cache(void)
Register NCBI_EntryPoint_SQLITE3_BlobCache.
unique_ptr< CSQLITE3_Statement > m_Stmt_GetReadStream
CWriterThread(const CWriterThread &)
unsigned GetMemBufferSize() const
string m_Database
filename of the database
TWriteQueue & m_WriteQueue
CWriterThread & operator=(const CWriterThread &)
TTimeStampFlags m_TimeStampFlag
unique_ptr< CSQLITE3_Statement > m_Stmt_GetBlobAccess
virtual TFlags GetFlags()
Retrieve the effective combination of flags from the underlying storage.
CSQLITE3_Cache & operator=(const CSQLITE3_Cache &)
const string kSQLITE3_BlobCacheDriverName
unique_ptr< CSQLITE3_Statement > m_Stmt_HasBlobs_key
unique_ptr< CSQLITE3_Statement > m_Stmt_HasBlobs_key_subkey
NCBI_EXCEPTION_DEFAULT(CSQLITE3_ICacheException, CException)
unique_ptr< CSQLITE3_Statement > m_Stmt_SetTimestamp
virtual void SetFlags(TFlags flags)
Pass flags to the underlying storage.
EKeepVersions m_VersionFlag
CRef< SWriteRequest > m_StopRequest
EErrCode
Error types that an application can generate.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
void Read(CObjectIStream &in, TObjectPtr object, const CTypeRef &type)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Interfaces for a local cache of versioned binary large objects (BLOBS).
#define SetBlobVersionAsValid
use only n Cassandra database for the lookups</td > n</tr > n< tr > n< td > yes</td > n< td > do not use tables BIOSEQ_INFO and BLOB_PROP in the Cassandra database
const string version
version string
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
const struct ncbi::grid::netcache::search::fields::SUBKEY subkey
Defines NCBI C++ exception handling.
#define NCBI_SQLITE3_CACHE_EXPORT
delayed write request object
Definition of synchronized queue (CSyncQueue template) and templates related to it.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4