IBucket InterfaceCouchbase .NET SDK 2.3.3
Represents a Couchbase Bucket object for performing CRUD operations on Documents and Key/Value pairs, View queries, and executing N1QL queries.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
public interface IBucket : IDisposable

The IBucket type exposes the following members.

Methods
  NameDescription
Public methodAppend(String,Byte[])
Appends a value to a give key.
Public methodAppend(String, String)
Appends a value to a give key.
Public methodAppendAsync(String,Byte[])
Appends a value to a give key as an asynchronous operation.
Public methodAppendAsync(String, String)
Appends a value to a give key as an asynchronous operation.
Public methodCreateManager
Creates a IBucketManager instance for managing buckets.
Public methodCreateQuery(String, String)
Creates an instance of an object that implements IViewQuery, which targets a given bucket, design document and a published view.
Public methodCreateQuery(String, String, Boolean)
Creates an instance of an object that implements IViewQuery, which targets a given bucket and design document.
Public methodDecrement(String)
Decrements the value of a key by one. If the key doesn't exist, it will be created and seeded with 1.
Public methodDecrement(String, UInt64)
Decrements the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrement(String, UInt64, UInt64)
Decrements the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrement(String, UInt64, UInt64, TimeSpan)
Decrements the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrement(String, UInt64, UInt64, UInt32)
Decrements the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrementAsync(String)
Decrements the value of a key by one as an asynchronous operation. If the key doesn't exist, it will be created and seeded with 1.
Public methodDecrementAsync(String, UInt64)
Decrements the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrementAsync(String, UInt64, UInt64)
Decrements the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrementAsync(String, UInt64, UInt64, TimeSpan)
Decrements the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDecrementAsync(String, UInt64, UInt64, UInt32)
Decrements the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodExists
Checks for the existance of a given key.
Public methodExistsAsync
Checks for the existance of a given key as an asynchronous operation.
Public methodGet<T>(IList<String>)
Gets a range of values for a given set of keys
Public methodGet<T>(String)
Gets value for a given key
Public methodGet<T>(IList<String>, ParallelOptions)
Gets a range of values for a given set of keys
Public methodGet<T>(IList<String>, ParallelOptions, Int32)
Gets a range of values for a given set of keys
Public methodGetAndLock<T>(String, TimeSpan)
Gets a document and locks it for a specified time period.
Public methodGetAndLock<T>(String, UInt32)
Gets a document and locks it for a specified time period.
Public methodGetAndLockAsync<T>(String, TimeSpan)
Gets a document and locks it for a specified time period as an asynchronous operation.
Public methodGetAndLockAsync<T>(String, UInt32)
Gets a document and locks it for a specified time period as an asynchronous operation.
Public methodGetAndTouch<T>
Retrieves a value by key and additionally updates the expiry with a new value.
Public methodGetAndTouchAsync<T>
Retrieves a value by key and additionally updates the expiry with a new value as an asynchronous operation.
Public methodGetAndTouchDocument<T>
Retrieves a document by key and additionally updates the expiry with a new value.
Public methodGetAndTouchDocumentAsync<T>
Retrieves a document by key and additionally updates the expiry with a new value as an asynchronous operation.
Public methodGetAsync<T>
Gets a Task that can be awaited on for a given Key and value as an asynchronous operation.
Public methodGetDocument<T>
Gets a document by it's given id.
Public methodGetDocumentAsync<T>
Gets a document by it's given id as an asynchronous operation.
Public methodGetDocumentsAsync<T>
Gets a list of documents by their given id as an asynchronous operation.
Public methodGetFromReplica<T>
Returns a value for a
Public methodGetFromReplicaAsync<T>
Gets a value for key and checks it's replicas as an asynchronous operation.
Public methodGetWithLock<T>(String, TimeSpan)Obsolete.
Gets a document and locks it for a specified time period.
Public methodGetWithLock<T>(String, UInt32)Obsolete.
Gets a document and locks it for a specified time period.
Public methodGetWithLockAsync<T>(String, TimeSpan)Obsolete.
Gets a document and locks it for a specified time period as an asynchronous operation.
Public methodGetWithLockAsync<T>(String, UInt32)Obsolete.
Gets a document and locks it for a specified time period as an asynchronous operation.
Public methodIncrement(String)
Increments the value of a key by one. If the key doesn't exist, it will be created and seeded with 1.
Public methodIncrement(String, UInt64)
Increments the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrement(String, UInt64, UInt64)
Increments the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrement(String, UInt64, UInt64, TimeSpan)
Increments the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrement(String, UInt64, UInt64, UInt32)
Increments the value of a key by the delta. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrementAsync(String)
Increments the value of a key by one as an asynchronous operation. If the key doesn't exist, it will be created. and seeded with 1.
Public methodIncrementAsync(String, UInt64)
Increments the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrementAsync(String, UInt64, UInt64)
Increments the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrementAsync(String, UInt64, UInt64, TimeSpan)
Increments the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodIncrementAsync(String, UInt64, UInt64, UInt32)
Increments the value of a key by the delta as an asynchronous operation. If the key doesn't exist, it will be created and seeded with the defaut initial value 1.
Public methodInsert<T>(IDocument<T>)
Inserts a JSON document into the IBucketfailing if it exists.
Public methodInsert<T>(String, T)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsert<T>(IDocument<T>, ReplicateTo)
Inserts a JSON document into the IBucketfailing if it exists.
Public methodInsert<T>(String, T, ReplicateTo)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsert<T>(String, T, TimeSpan)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsert<T>(String, T, UInt32)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsert<T>(IDocument<T>, ReplicateTo, PersistTo)
Inserts a JSON document into the IBucketfailing if it exists.
Public methodInsert<T>(String, T, ReplicateTo, PersistTo)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsert<T>(String, T, TimeSpan, ReplicateTo, PersistTo)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsert<T>(String, T, UInt32, ReplicateTo, PersistTo)
Inserts a document into the database for a given key, failing if it exists.
Public methodInsertAsync<T>(IDocument<T>)
Inserts a JSON document into the IBucketfailing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(List<IDocument<T>>)
Inserts a list of JSON documents asynchronously, each document failing if it already exists.
Public methodInsertAsync<T>(String, T)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodInsertAsync<T>(IDocument<T>, ReplicateTo)
Inserts a JSON document into the IBucketfailing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(List<IDocument<T>>, ReplicateTo)
Inserts a list of JSON documents asynchronously, each document failing if it already exists.
Public methodInsertAsync<T>(String, T, ReplicateTo)
Inserts a document into the database for a given key, failing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(String, T, TimeSpan)
Inserts a document into the database for a given key, failing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(String, T, UInt32)
Inserts a document into the database for a given key, failing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(IDocument<T>, ReplicateTo, PersistTo)
Inserts a JSON document into the IBucketfailing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(List<IDocument<T>>, ReplicateTo, PersistTo)
Inserts a list of JSON documents asynchronously, each document failing if it already exists.
Public methodInsertAsync<T>(String, T, ReplicateTo, PersistTo)
Inserts a document into the database for a given key, failing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(String, T, TimeSpan, ReplicateTo, PersistTo)
Inserts a document into the database for a given key, failing if it exists as an asynchronous operation.
Public methodInsertAsync<T>(String, T, UInt32, ReplicateTo, PersistTo)
Inserts a document into the database for a given key, failing if it exists as an asynchronous operation.
Public methodLookupIn<TDocument>
Public methodMutateIn<TDocument>
Public methodObserve
Performs 'observe' on a given key to ensure that it's durability requirements with respect to persistence and replication are satisfied.
Public methodObserveAsync
Performs 'observe' on a given key to ensure that it's durability requirements with respect to persistence and replication are satisfied asynchronously.
Public methodPrepend(String,Byte[])
Prepends a value to a give key.
Public methodPrepend(String, String)
Prepends a value to a give key.
Public methodPrependAsync(String,Byte[])
Prepends a value to a give key as an asynchronous operation.
Public methodPrependAsync(String, String)
Prepends a value to a give key as an asynchronous operation.
Public methodQuery(SearchQuery)
Public methodQuery<T>(String)
Executes a N1QL query against the Couchbase Cluster.
Public methodQuery<T>(IQueryRequest)
Executes a N1QL statement or prepared statement via a IQueryRequest against the Couchbase Cluster.
Public methodQuery<T>(IViewQueryable)
Executes a View query and returns the result.
Public methodQueryAsync(SearchQuery)
Public methodQueryAsync<T>(String)
Asynchronously executes a N1QL query against the Couchbase Cluster.
Public methodQueryAsync<T>(IQueryRequest)
Asynchronously executes a N1QL statement or prepared statement via a IQueryRequest against the Couchbase Cluster.
Public methodQueryAsync<T>(IViewQueryable)
Asynchronously Executes a View query and returns the result.
Public methodRemove(IList<String>)
Removes a range of documents for a given set of keys
Public methodRemove(String)
Removes a document for a given key from the database.
Public methodRemove(IList<String>, ParallelOptions)
Removes a range of documents for a given set of keys
Public methodRemove(String, ReplicateTo)
Removes a document for a given key from the database.
Public methodRemove(String, UInt64)
Removes a document for a given key from the database.
Public methodRemove(IList<String>, ParallelOptions, Int32)
Removes a range of documents for a given set of keys
Public methodRemove(String, ReplicateTo, PersistTo)
Removes a document for a given key from the database.
Public methodRemove(String, UInt64, ReplicateTo)
Removes a document for a given key from the database.
Public methodRemove(String, UInt64, ReplicateTo, PersistTo)
Removes a document for a given key from the database.
Public methodRemove<T>(IDocument<T>)
Removes a document from the database.
Public methodRemove<T>(IDocument<T>, ReplicateTo)
Removes a document from the database.
Public methodRemove<T>(IDocument<T>, ReplicateTo, PersistTo)
Removes a document from the database.
Public methodRemoveAsync(String)
Asynchronously removes a document for a given key from the database as an asynchronous operation.
Public methodRemoveAsync(String, ReplicateTo)
Removes a document for a given key from the database as an asynchronous operation.
Public methodRemoveAsync(String, UInt64)
Removes a document for a given key from the database as an asynchronous operation.
Public methodRemoveAsync(String, ReplicateTo, PersistTo)
Removes a document for a given key from the database as an asynchronous operation.
Public methodRemoveAsync(String, UInt64, ReplicateTo)
Removes a document for a given key from the database as an asynchronous operation.
Public methodRemoveAsync(String, UInt64, ReplicateTo, PersistTo)
Removes a document for a given key from the database as an asynchronous operation.
Public methodRemoveAsync<T>(IDocument<T>)
Removes a document from the database as an asynchronous operation.
Public methodRemoveAsync<T>(List<IDocument<T>>)
Removes a list of IDocument from the bucket asynchronously.
Public methodRemoveAsync<T>(IDocument<T>, ReplicateTo)
Removes a document from the database as an asynchronous operation.
Public methodRemoveAsync<T>(List<IDocument<T>>, ReplicateTo)
Removes a list of IDocument from the bucket asynchronously.
Public methodRemoveAsync<T>(IDocument<T>, ReplicateTo, PersistTo)
Removes a document from the database as an asynchronous operation.
Public methodRemoveAsync<T>(List<IDocument<T>>, ReplicateTo, PersistTo)
Removes a list of IDocument from the bucket asynchronously.
Public methodReplace<T>(IDocument<T>)
Replaces a document if it exists, otherwise fails.
Public methodReplace<T>(String, T)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(IDocument<T>, ReplicateTo)
Replaces a document if it exists, otherwise fails.
Public methodReplace<T>(String, T, ReplicateTo)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, TimeSpan)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt32)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(IDocument<T>, ReplicateTo, PersistTo)
Replaces a document if it exists, otherwise fails.
Public methodReplace<T>(String, T, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64, ReplicateTo)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64, TimeSpan)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64, UInt32)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64, TimeSpan, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplace<T>(String, T, UInt64, UInt32, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails.
Public methodReplaceAsync<T>(IDocument<T>)
Replaces a document if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(List<IDocument<T>>)
Public methodReplaceAsync<T>(String, T)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(IDocument<T>, ReplicateTo)
Replaces a document if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(List<IDocument<T>>, ReplicateTo)
Public methodReplaceAsync<T>(String, T, ReplicateTo)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, TimeSpan)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt32)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(IDocument<T>, ReplicateTo, PersistTo)
Replaces a document if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(List<IDocument<T>>, ReplicateTo, PersistTo)
Public methodReplaceAsync<T>(String, T, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64, ReplicateTo)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64, TimeSpan)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64, UInt32)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64, TimeSpan, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodReplaceAsync<T>(String, T, UInt64, UInt32, ReplicateTo, PersistTo)
Replaces a document for a given key if it exists, otherwise fails as an asynchronous operation.
Public methodTouch
Updates the expiration a key without modifying or returning it's value.
Public methodTouchAsync
Updates the expiration a key without modifying or returning it's value as an asynchronous operation.
Public methodUnlock
Public methodUnlockAsync
Public methodUpsert<T>(IDictionary<String, T>)
Inserts or replaces a range of items into Couchbase Server.
Public methodUpsert<T>(IDocument<T>)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server.
Public methodUpsert<T>(IDictionary<String, T>, ParallelOptions)
Inserts or replaces a range of items into Couchbase Server.
Public methodUpsert<T>(String, T)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(IDocument<T>, ReplicateTo)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server.
Public methodUpsert<T>(IDictionary<String, T>, ParallelOptions, Int32)
Inserts or replaces a range of items into Couchbase Server.
Public methodUpsert<T>(String, T, ReplicateTo)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, TimeSpan)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt32)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt64)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(IDocument<T>, ReplicateTo, PersistTo)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server.
Public methodUpsert<T>(String, T, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt64, TimeSpan)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt64, UInt32)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, TimeSpan, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt32, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt64, TimeSpan, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsert<T>(String, T, UInt64, UInt32, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server.
Public methodUpsertAsync<T>(IDocument<T>)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(List<IDocument<T>>)
Public methodUpsertAsync<T>(String, T)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(IDocument<T>, ReplicateTo)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(List<IDocument<T>>, ReplicateTo)
Public methodUpsertAsync<T>(String, T, ReplicateTo)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, TimeSpan)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt32)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt64)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(IDocument<T>, ReplicateTo, PersistTo)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(List<IDocument<T>>, ReplicateTo, PersistTo)
Public methodUpsertAsync<T>(String, T, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt64, TimeSpan)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt64, UInt32)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, TimeSpan, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt32, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt64, TimeSpan, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Public methodUpsertAsync<T>(String, T, UInt64, UInt32, ReplicateTo, PersistTo)
Inserts or replaces an existing document into Couchbase Server as an asynchronous operation.
Top
Properties
  NameDescription
Public propertyBucketType
Returns type of the bucket (either Couchbase or Memcached)
Public propertyCluster
Returns the ICluster that this bucket belongs to
Public propertyConfiguration
Gets the configuration for the bucket
Public propertyIsSecure
Returns true if bucket is using SSL encryption between the client and the server.
Public propertyName
The name of the Couchbase Bucket. This is visible from the Couchbase Server Management Console.
Public propertySupportsEnhancedDurability
Gets a value indicating whether enhanced durability is enabled.
Top
See Also