1 頁 (共 1 頁)

memcached

發表於 : 2017-09-05 16:43:37
yehlu
https://hub.docker.com/r/_/memcached/
https://blog.longwin.com.tw/2010/04/use ... sion-2010/
https://www.digitalocean.com/community/ ... untu-14-04

代碼: 選擇全部

docker pull memcached
yml

代碼: 選擇全部

memcached:
  container_name: memcached
  restart: always
  image: memcached:latest
php.ini

代碼: 選擇全部

session.save_handler = memcache
session.save_path="tcp://memcached:11211?persistent=1&weight=1&timeout=1&retry_interval=15"

Re: memcached

發表於 : 2017-09-05 22:29:55
yehlu
https://github.com/docker-library/php/issues/132

代碼: 選擇全部

# install memcached
RUN apt-get -y install git libmemcached11 libmemcachedutil2 libmemcached-dev \
    && cd /usr/local/share \
    && git clone --branch php7 https://github.com/php-memcached-dev/php-memcached \
    && cd php-memcached \
    && phpize \
    && ./configure \
    && make \
    && echo "extension=/usr/local/share/php-memcached/modules/memcached.so" > /usr/local/etc/php/conf.d/memcached.ini

Re: memcached

發表於 : 2017-09-05 22:59:17
yehlu
https://blog.wu-boy.com/2014/02/laravel ... n-session/

php.ini

代碼: 選擇全部

session.save_handler = memcached
session.save_path = memcached:11211
laravel .env

代碼: 選擇全部

CACHE_DRIVER=memcached
SESSION_DRIVER=memcached
MEMCACHED_HOST=memcached
MEMCACHED_PORT=11211

Re: memcached

發表於 : 2017-09-05 23:08:35
yehlu

代碼: 選擇全部

sudo apt-get install libmemcached-tools

memcdump --server=127.0.0.1
memc.sess.shstn4085056j60hsqgtvtcr75
laravel:tg18ErhQa49E6uh54y589hKPhaINOSglZGq3d4Om

memccat --server=127.0.0.1 memc.sess.shstn4085056j60hsqgtvtcr75
OK|s:5:"yehlu";

Re: memcached

發表於 : 2017-09-06 22:45:37
yehlu
https://github.com/fraserreed/memcached-manager

https://github.com/clickalicious/phpmemadmin

https://blog.elijaa.org/phpmemcachedadmin/

代碼: 選擇全部

tar -xvzf phpMemcachedAdmin-1.2.2-r262.tar.gz
chmod -R +rx *
chmod 0777 Config/Memcache.php
chmod 0777 Temp/

Re: memcached

發表於 : 2017-09-10 23:26:10
yehlu
vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php

代碼: 選擇全部

$server['host'], intval($server['port']), $server['weight']