memcached

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

memcached

文章 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"
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: memcached

文章 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
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: memcached

文章 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
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: memcached

文章 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";
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: memcached

文章 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/
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: memcached

文章 yehlu »

vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php

代碼: 選擇全部

$server['host'], intval($server['port']), $server['weight']
回覆文章

回到「Docker」