Developed with love by KnpLabs Hire us for your project!
29

memcached-bundle

by aequasi

Memcached bundle for Symfony 2

No readme file found in bundle.
memcached:
clusters:

# Prototype
name:
prefix:

# Specify to enable persistent connections. All clients with the same ID share connections.
persistent_id: ~

# Enabled or disables this service. Default: True
enabled: true
hosts:
host: localhost
port: 11211
weight: 0

# Settings for creating a key map in a database
keyMap:

# Enable or Disable storing keys and their lifetimes to the database. Default: False
enabled: false

# Doctrine Connection Name
connection:
options:

# Enables or disables payload compression. When enabled, item values longer than a certain threshold (currently 100 bytes) will be compressed during storage and decompressed during retrieval transparently. Default: True
compression: true

# Specifies the serializer to use for serializing non-scalar values. The valid serializers are Memcached::SERIALIZER_PHP, Memcached::SERIALIZER_JSON, Memcached::SERIALIZER_JSON_ARRAY or Memcached::SERIALIZER_IGBINARY. The latter is supported only when memcached is configured with --enable-memcached-igbinary option and the igbinary extension is loaded. Default: Memcached::SERIALIZER_PHP
serializer: php

# This can be used to create a "domain" for your item keys. The value specified here will be prefixed to each of the keys. It cannot be longer than 128 characters and will reduce the maximum available key size. The prefix is applied only to the item keys, not to the server keys. Default: ""
prefix_key:

# Specifies the hashing algorithm used for the item keys. The valid values are supplied via Memcached::HASH_* constants (can be viewed at http://php.net/manual/en/memcached.constants.php). Each hash algorithm has its advantages and its disadvantages. Go with the default if you don't know or don't care. Default: Memcached::HASH_DEFAULT
hash: default

# Specifies the method of distributing item keys to the servers. Currently supported methods are modulo and consistent hashing. Consistent hashing delivers better distribution and allows servers to be added to the cluster with minimal cache losses. Default: Memcached::DISTRIBUTION_MODULA
distribution: modula

# Enables or disables compatibility with libketama-like behavior. When enabled, the item key hashing algorithm is set to MD5 and distribution is set to be weighted consistent hashing distribution. This is useful because other libketama-based clients (Python, Ruby, etc.) with the same server configuration will be able to access the keys transparently. It is highly recommended to enable this option if you want to use consistent hashing, and it may be enabled by default in future releases of Memcached. Default: True
libketama_compatible: true

# Enables or disables buffered I/O. Enabling buffered I/O causes storage commands to "buffer" instead of being sent. Any action that retrieves data causes this buffer to be sent to the remote connection. Quitting the connection or closing down the connection will also cause the buffered data to be pushed to the remote connection. Default: False
buffer_writes: false

# Enable the use of the binary protocol. Please note that you cannot toggle this option on an open connection. Default: False
binary_protocol: false

# Enables or disables asynchronous I/O. This is the fastest transport available for storage functions. Default: False
no_block: false

# Enables or disables the no-delay feature for connecting sockets (may be faster in some environments). Default: False
tcp_no_delay: false
socket_send_size: ~
socket_recv_size: ~

# In non-blocking mode this set the value of the timeout during socket connection, in milliseconds. Default: 1000
connect_timeout: 1000

# The amount of time, in seconds, to wait until retrying a failed connection attempt. Default: 5
retry_timeout: 5

# Socket sending timeout, in microseconds. In cases where you cannot use non-blocking I/O this will allow you to still have timeouts on the sending of data. Default: 0
send_timeout: 0

# Socket reading timeout, in microseconds. In cases where you cannot use non-blocking I/O this will allow you to still have timeouts on the reading of data. Default: 0
recv_timeout: 0

# Timeout for connection polling, in milliseconds. Default: 1000
poll_timeout: 1000
cache_lookups: false

# Specifies the failure limit for server connection attempts. The server will be removed after this many continuous connection failures. Default: 3
server_failure_limit: 3
session:
cluster: ~ # Required
prefix: ~
ttl: ~
doctrine:
metadata:
cluster: ~ # Required
entity_managers: []
document_managers: []
result:
cluster: ~ # Required
entity_managers: []
document_managers: []
query:
cluster: ~ # Required
entity_managers: []
document_managers: []
  • Merge pull request #12 from aequasi/aequasi-patch-1
    By web-flow, 1 year ago
  • Update README.md
    By web-flow, 1 year ago
  • Update README.md
    By aequasi, 5 years ago
  • Update README.md
    By aequasi, 5 years ago
  • Add a Bitdeli badge to README
    By bitdeli-chef, 5 years ago
  • Merge pull request #11 from bitdeli-chef/master
    By aequasi, 5 years ago
  • Merge pull request #10 from leafpeak/master
    By aequasi, 5 years ago
  • distribution should be a scalarNode and not a integerNode
    By leafpeak, 5 years ago
  • Update README.md
    By aequasi, 5 years ago
  • Fixing bad documentation
    By aequasi, 5 years ago
  • Update LoggingMemcached.php
    By aequasi, 5 years ago
  • Merge pull request #7 from Ingewikkeld/smalldocfix
    By aequasi, 5 years ago
  • small fix in the documentation for those (like me) that like to copy/paste
    By skoop, 5 years ago
  • Update README.md
    By aequasi, 6 years ago
  • Update README.md
    By aequasi, 6 years ago
  • Update README.md
    By aequasi, 6 years ago
  • Update README.md
    By aequasi, 6 years ago
  • Fixing syntax error
    By aequasi, 6 years ago
  • Switching memcache check from 'extension_loaded' to 'class_exists' for issue #2
    By aequasi, 6 years ago
  • Removing version in composer
    By aequasi, 6 years ago
  • Update AequasiMemcachedExtension.php
    By aequasi, 6 years ago
  • Fixing readme for new configs
    By aequasi, 6 years ago
  • Fixing Drop table
    By aequasi, 6 years ago
  • Fixing Drop table
    By aequasi, 6 years ago
  • Adding namespace to memcached
    By aequasi, 6 years ago
  • Adding namespace to memcached
    By aequasi, 6 years ago
  • Adding namespace to memcached
    By aequasi, 6 years ago
  • Adding namespace to memcached
    By aequasi, 6 years ago
  • Adding namespace to memcached
    By aequasi, 6 years ago
  • Adding namespace to memcached
    By aequasi, 6 years ago