Click or drag to resize

QdbBlob Class

A blob (unstructured data) in a quasardb database.
Inheritance Hierarchy
SystemObject
  QuasardbQdbEntry
    QuasardbQdbExpirableEntry
      QuasardbQdbBlob

Namespace:  Quasardb
Assembly:  Quasardb (in Quasardb.dll) Version: 3.15.0.0 (3.15.0.0)
Syntax
public sealed class QdbBlob : QdbExpirableEntry

The QdbBlob type exposes the following members.

Properties
  NameDescription
Public propertyAlias
The alias of the entry in the database.
(Inherited from QdbEntry.)
Top
Methods
  NameDescription
Public methodAttachTag(String)
Adds a tag to the entry.
(Inherited from QdbEntry.)
Public methodAttachTag(QdbTag)
Adds a tag to the entry.
(Inherited from QdbEntry.)
Public methodCompareAndSwap
Atomically compares and replaces the content when it matches.
Public methodDetachTag(String)
Removes a tag from the entry.
(Inherited from QdbEntry.)
Public methodDetachTag(QdbTag)
Removes a tag from the entry.
(Inherited from QdbEntry.)
Public methodExpiresAt
Sets an absolute expiry time.
(Inherited from QdbExpirableEntry.)
Public methodExpiresFromNow
Sets an relative expiry time.
(Inherited from QdbExpirableEntry.)
Public methodGet
Gets the content.
Public methodGetAndRemove
Atomically gets the content and delete the blob.
Public methodGetAndUpdate
Atomically gets the content and replaces it.
Public methodGetExpiryTime
Gets the expiry time.
(Inherited from QdbExpirableEntry.)
Public methodGetTags
Gets the tags of the entry
(Inherited from QdbEntry.)
Public methodHasTag(String)
Checks if the entry has the specified tag.
(Inherited from QdbEntry.)
Public methodHasTag(QdbTag)
Checks if the entry has the specified tag.
(Inherited from QdbEntry.)
Public methodPut
Sets the content, but fails if the blob already exists.
Public methodRemove
Removes the entry from the database.
(Inherited from QdbEntry.)
Public methodRemoveIf
Atomically compares the content and deletes the blob when it matches.
Public methodUpdate
Replaces the content.
Top
Remarks
QdbBlob can be constructed via Blob(String).
Examples
Here is how to put a blob in the database:
byte[] myData;
var cluster = new QdbCluster("qdb://127.0.0.1:2836");

cluster.Blob("some name").Put(myData);
See Also