Click or drag to resize

QdbString Class

A UTF-8 encoded string stored in the database.
Inheritance Hierarchy
SystemObject
  QuasardbQdbEntry
    QuasardbQdbExpirableEntry
      QuasardbQdbString

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

The QdbString 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 string.
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 string already exists.
Public methodRemove
Removes the entry from the database.
(Inherited from QdbEntry.)
Public methodRemoveIf
Atomically compares the content and deletes the string when it matches.
Public methodUpdate
Replaces the content.
Top
Remarks
Qdbstring can be constructed via String(String).
Examples
Here is how to put a string in the database:
byte[] myData;
var cluster = new QdbCluster("qdb://127.0.0.1:2836");

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