NCBI C++ ToolKit
|
Search Toolkit Book for CBlobStorage_NetCache
CBlobStorage_NetCache – NetCache-based implementation of IBlobStorage. More...
#include <connect/services/netcache_api.hpp>
Public Member Functions | |
CBlobStorage_NetCache () | |
CBlobStorage_NetCache (CNetCacheAPI::TInstance nc_client) | |
Create Blob Storage. More... | |
virtual | ~CBlobStorage_NetCache () |
virtual bool | IsKeyValid (const string &str) |
Check if a given string is a valid key. More... | |
virtual string | GetBlobAsString (const string &data_id) |
Get a blob content as a string. More... | |
virtual CNcbiIstream & | GetIStream (const string &data_id, size_t *blob_size_ptr=0, ELockMode lock_mode=eLockWait) |
Get an input stream to a blob. More... | |
virtual CNcbiOstream & | CreateOStream (string &data_id, ELockMode lock_mode=eLockNoWait) |
Get an output stream to a blob. More... | |
virtual string | CreateEmptyBlob () |
Create an new blob. More... | |
virtual void | DeleteBlob (const string &data_id) |
Delete a blob. More... | |
virtual void | Reset () |
Close all streams and connections. More... | |
CNetCacheAPI | GetNetCacheAPI () const |
Public Member Functions inherited from IBlobStorage | |
virtual | ~IBlobStorage () |
virtual void | DeleteStorage (void) |
Delete the storage with all its data. More... | |
Private Member Functions | |
CBlobStorage_NetCache (const CBlobStorage_NetCache &) | |
CBlobStorage_NetCache & | operator= (CBlobStorage_NetCache &) |
Private Attributes | |
CNetCacheAPI | m_NCClient |
unique_ptr< CNcbiIstream > | m_IStream |
unique_ptr< CNcbiOstream > | m_OStream |
Additional Inherited Members | |
Public Types inherited from IBlobStorage | |
enum | ELockMode { eLockWait , eLockNoWait } |
CBlobStorage_NetCache – NetCache-based implementation of IBlobStorage.
Definition at line 610 of file netcache_api.hpp.