Package Data | |
---|---|
Maintainer Username: | cedricziel |
Maintainer Contact: | cedric@cedric-ziel.com (Cedric Ziel) |
Package Create Date: | 2015-12-21 |
Package Last Update: | 2017-01-13 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:20:30 |
Package Statistics | |
---|---|
Total Downloads: | 93 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 1 |
The only difference from the default connector is the removed version command, which some third parties don't implement (AppEngine Managed VMs).
Add the service provider to your application to replace the memcached connector singleton in the container:
CedricZiel\MemcachedNoVersion\MemcachedNoversionServiceProvider::class,
Google AppEngine Flexible comes with a memcache service, which is easily discoverable through the following environment variables:
MEMCACHE_PORT_11211_TCP_ADDR
MEMCACHE_PORT_11211_TCP_PORT
So in order to use this adapter with AppEngine flex, you need to adjust your config (config/cache.php
) a bit:
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHE_PORT_11211_TCP_ADDR', '127.0.0.1'),
'port' => env('MEMCACHE_PORT_11211_TCP_PORT', 11211),
'weight' => 100,
],
],
],
MIT