memcached and memcache PHP extensions through dedicated templates.
Setup
application.yml:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Winter Data Memcache connects Winter Boot applications to Memcached servers using either the memcached or memcache PHP extension with Autowired templates.
memcached and memcache PHP extensions through dedicated templates.
composer require suvera/winter-modules
application.yml:
modules:
- module: 'dev\winterframework\data\memcache\MemcacheModule'
enabled: true
configFile: memcache-config.yml
pecl install memcached
pecl install memcache
# When **memcache** php extension installed.
memcache:
- name: bean01
idleTimeout: 30
timeout: 0
retry_interval: 0
status: 0
servers:
- host: 127.0.0.1
port: 11211
weight: 0
# When **memcached** php extension installed.
memcached:
- name: bean02
timeout: 0
idleTimeout: 30
retry_interval: 0
status: 0
servers:
- host: 127.0.0.1
port: 11211
weight: 0
#[Autowired("bean02")]
private MemcachedTemplate $memcache1;
#[Autowired("bean01")]
private MemcacheTemplate $memcache2;