NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members

Search Toolkit Book for CBlobStorage_NetCache

CBlobStorage_NetCache – NetCache-based implementation of IBlobStorage. More...

#include <connect/services/netcache_api.hpp>

+ Inheritance diagram for CBlobStorage_NetCache:
+ Collaboration diagram for CBlobStorage_NetCache:

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 CNcbiIstreamGetIStream (const string &data_id, size_t *blob_size_ptr=0, ELockMode lock_mode=eLockWait)
 Get an input stream to a blob. More...
 
virtual CNcbiOstreamCreateOStream (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_NetCacheoperator= (CBlobStorage_NetCache &)
 

Private Attributes

CNetCacheAPI m_NCClient
 
unique_ptr< CNcbiIstreamm_IStream
 
unique_ptr< CNcbiOstreamm_OStream
 

Additional Inherited Members

- Public Types inherited from IBlobStorage
enum  ELockMode { eLockWait , eLockNoWait }
 

Detailed Description

CBlobStorage_NetCache – NetCache-based implementation of IBlobStorage.

Definition at line 610 of file netcache_api.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:29 2024 by modify_doxy.py rev. 669887