Interface CAS

The CAS value is a special object which indicates the current state of the item on the server. Each time an object is mutated on the server, the value is changed. CAS objects can be used in conjunction with mutation operations to ensure that the value on the server matches the local value retrieved by the client. This is useful when doing document updates on the server as you can ensure no changes were applied by other clients while you were in the process of mutating the document locally.

In Couchnode, this is an opaque value. As such, you cannot generate CAS objects, but should rather use the values returned from a {@link KeyCallback}.

typedef

{object} CAS

Hierarchy

  • Object
    • CAS

Index

Properties

Methods

Properties

public constructor: Function

The initial value of Object.prototype.constructor is the standard built-in Object constructor.

Methods

public hasOwnProperty(v: string): boolean

Determines whether an object has a property with the specified name.

Parameters

  • v: string

    A property name.

Returns

boolean

public isPrototypeOf(v: Object): boolean

Determines whether an object exists in another object's prototype chain.

Parameters

  • v: Object

    Another object whose prototype chain is to be checked.

Returns

boolean

public propertyIsEnumerable(v: string): boolean

Determines whether a specified property is enumerable.

Parameters

  • v: string

    A property name.

Returns

boolean

public toLocaleString(): string

Returns a date converted to a string using the current locale.

Returns

string

public toString(): string

Returns a string representation of an object.

Returns

string

public valueOf(): Object

Returns the primitive value of the specified object.

Returns

Object