A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/sqlite__cache_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/cache/sqlite_cache.hpp Source File

1 #ifndef GUI_CACHE___SQLITE_CACHE__HPP 2 #define GUI_CACHE___SQLITE_CACHE__HPP 47 #if defined(NCBI_OS_MSWIN) && defined(NCBI_DLL_BUILD) 49 #ifdef NCBI_SQLITE3_CACHE_EXPORTS 50 # define NCBI_SQLITE3_CACHE_EXPORT __declspec(dllexport) 52 # define NCBI_SQLITE3_CACHE_EXPORT __declspec(dllimport) 57 # define NCBI_SQLITE3_CACHE_EXPORT 104

kDefaultTimestampPolicy = fTimeStampOnCreate | fTimeStampOnRead |

105

fTrackSubKey | fPurgeOnStartup

131  void

SetMemBufferSize(

unsigned int

buf_size);

137  unsigned int

timeout,

138  unsigned int

max_timeout = 0);

141  virtual int

GetTimeout()

const

;

143  virtual bool

IsOpen()

const

;

149  virtual void

Store(

const string

&

key

,

154  unsigned int

time_to_live = 0,

157  virtual size_t

GetSize(

const string

&

key

,

161  virtual void

GetBlobOwner(

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 void

GetBlobAccess(

const string

&

key

,

197  virtual IWriter

* GetWriteStream(

const string

&

key

,

200  unsigned int

time_to_live = 0,

203  virtual void

Remove(

const string

&

key

);

205  virtual void

Remove(

const string

&

key

,

209  virtual

time_t GetAccessTime(

const string

&

key

,

213  virtual bool

HasBlobs(

const string

&

key

,

216  virtual void

Purge(time_t access_timeout);

218  virtual void

Purge(

const string

&

key

,

220

time_t access_timeout);

222  virtual bool

SameCacheParams(

const TCacheParams

* params)

const

;

223  virtual string

GetCacheName(

void

)

const

;

230  void

StoreSynchronous(

const string

&

key

,

308  void

x_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