class BucketSettings (View source)

Methods

string
name()

No description

bool
flushEnabled()

No description

int
ramQuotaMb()

No description

int
numReplicas()

No description

bool
replicaIndexes()

No description

string
bucketType()

No description

string
evictionPolicy()

No description

string
storageBackend()

No description

int
maxTtl()

No description

string
compressionMode()

No description

setName(string $name)

No description

enableFlush(bool $enable)

No description

setRamQuotaMb(int $sizeInMb)

No description

setNumReplicas(int $numReplicas)

No description

enableReplicaIndexes(bool $enable)

No description

setBucketType(string $type)

No description

setEvictionPolicy(string $policy)

Configures eviction policy for the bucket.

setStorageBackend(string $policy)

Configures storage backend for the bucket.

setMaxTtl(int $ttlSeconds)

No description

setCompressionMode(string $mode)

No description

int
minimalDurabilityLevel()

Retrieves minimal durability level configured for the bucket

setMinimalDurabilityLevel(int $durabilityLevel)

Configures minimal durability level for the bucket

Details

string name()

No description

Return Value

string

bool flushEnabled()

No description

Return Value

bool

int ramQuotaMb()

No description

Return Value

int

int numReplicas()

No description

Return Value

int

bool replicaIndexes()

No description

Return Value

bool

string bucketType()

No description

Return Value

string

string evictionPolicy()

No description

Return Value

string

string storageBackend()

No description

Return Value

string

int maxTtl()

No description

Return Value

int

string compressionMode()

No description

Return Value

string

BucketSettings setName(string $name)

No description

Parameters

string $name

Return Value

BucketSettings

BucketSettings enableFlush(bool $enable)

No description

Parameters

bool $enable

Return Value

BucketSettings

BucketSettings setRamQuotaMb(int $sizeInMb)

No description

Parameters

int $sizeInMb

Return Value

BucketSettings

BucketSettings setNumReplicas(int $numReplicas)

No description

Parameters

int $numReplicas

Return Value

BucketSettings

BucketSettings enableReplicaIndexes(bool $enable)

No description

Parameters

bool $enable

Return Value

BucketSettings

BucketSettings setBucketType(string $type)

No description

Parameters

string $type

Return Value

BucketSettings

BucketSettings setEvictionPolicy(string $policy)

Configures eviction policy for the bucket.

Parameters

string $policy

eviction policy. Use constants FULL, VALUE_ONLY, NO_EVICTION, NOT_RECENTLY_USED.

Return Value

BucketSettings

See also

EvictionPolicy::FULL
EvictionPolicy::VALUE_ONLY
EvictionPolicy::NO_EVICTION
EvictionPolicy::NOT_RECENTLY_USED

BucketSettings setStorageBackend(string $policy)

Configures storage backend for the bucket.

Parameters

string $policy

storage backend. Use constants COUCHSTORE, MAGMA.

Return Value

BucketSettings

See also

StorageBackend::COUCHSTORE
StorageBackend::MAGMA

BucketSettings setMaxTtl(int $ttlSeconds)

No description

Parameters

int $ttlSeconds

Return Value

BucketSettings

BucketSettings setCompressionMode(string $mode)

No description

Parameters

string $mode

Return Value

BucketSettings

int minimalDurabilityLevel()

Retrieves minimal durability level configured for the bucket

Return Value

int

See also

DurabilityLevel::NONE
DurabilityLevel::MAJORITY
DurabilityLevel::MAJORITY_AND_PERSIST_TO_ACTIVE
DurabilityLevel::PERSIST_TO_MAJORITY

BucketSettings setMinimalDurabilityLevel(int $durabilityLevel)

Configures minimal durability level for the bucket

Parameters

int $durabilityLevel

durability level.

Return Value

BucketSettings

See also

DurabilityLevel::NONE
DurabilityLevel::MAJORITY
DurabilityLevel::MAJORITY_AND_PERSIST_TO_ACTIVE
DurabilityLevel::PERSIST_TO_MAJORITY