Click or drag to resize

QdbInteger Class

An atomic integer in the database.
Inheritance Hierarchy
SystemObject
  QuasardbQdbEntry
    QuasardbQdbExpirableEntry
      QuasardbQdbInteger

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

The QdbInteger type exposes the following members.

Properties
  NameDescription
Public propertyAlias
The alias of the entry in the database.
(Inherited from QdbEntry.)
Top
Methods
  NameDescription
Public methodAdd
Modifies the value of the integer in the database.
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 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 value of the integer in the database.
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 value of the integer, fails if it already exists.
Public methodRemove
Removes the entry from the database.
(Inherited from QdbEntry.)
Public methodUpdate
Sets the value of the integer, fails if it already exists.
Top
Examples
Here is how to set an integer blob in the database:
var cluster = new QdbCluster("qdb://127.0.0.1:2836");

cluster.Integer("some name").Put(42);
See Also