Click or drag to resize

QdbTimestamp Class

An atomic timestamp entry in quasardb.
An atomic timestamp entry in quasardb.
Inheritance Hierarchy
SystemObject
  QuasardbQdbEntry
    QuasardbQdbExpirableEntry
      QuasardbQdbTimestamp

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

The QdbTimestamp 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 timestamp 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 timestamp 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 timestamp, fails if it already exists.
Public methodRemove
Removes the entry from the database.
(Inherited from QdbEntry.)
Public methodUpdate
Sets the value of the timestamp, fails if it already exists.
Top
Remarks
Instances can be obtained via Timestamp(String).
Examples
Here is how to set a timestamp in the database:
C#
var cluster = new QdbCluster("qdb://127.0.0.1:2836");

cluster.Timestamp("some name").Put(TimeSpan.(...));
See Also