Skip to main content
Winter Data Memcache is a module that provides easy configuration and access to Memcached service from Winter Boot applications. It supports both the memcached and memcache PHP extensions through dedicated templates.
Client-only module. For the built-in framework caching abstraction see Caching; to launch an embedded Memcached server see Memdb.

Setup

Append the following code to your application.yml:

Implementation

PHP has two very good libraries that can be used to work with Memcache:
  1. Memcached
  2. Memcache
One of these extensions is required.

Autowired Services

This module provides the following services automatically available to you.

1. MemcachedTemplate

Available when the memcached PHP extension is installed.

2. MemcacheTemplate

Available when the memcache PHP extension is installed.

Configuration (memcache-config.yml)

PHP Example