Skip to content

Memcache Setup

DeclanBuckley edited this page May 28, 2024 · 2 revisions
  1. To install Memcached copy c:\memcached directory from 10.7.2.22 as http://downloads.northscale.com/memcached-win64-1.4.4-14.zip does not work

  2. Use ImDisk(https://sourceforge.net/projects/imdisk-toolkit/) to create a RAM disk

  3. C:\Windows\System32\backup

  4. -e, --memory-file= (EXPERIMENTAL) mmap a file for item memory. use only in ram disks or persistent memory mounts! enables restartable cache (stop with SIGUSR1)

Note: To stop with SIGUSR1 on Ubuntu: kill -SIGUSR1 $(pid of memcached)`

  1. memcached -v -e C:\Windows\System32\backup

C:\Users\chapmand\memcached\1.6.9\cygwin\x64>memcached -vvv -e=C:\Windows\System32\backup failed to open file for mmap: Permission denied 0 [main] memcached 1356 cygwin_exception::open_stackdumpfile: Dumping stack trace to memcached.exe.stackdump

  1. Set up sharing for C:\Windows\System32\backup

Note: WSL: Windows Subsystem for Linux

Message sent to memcached google groups:

I used ImDisk to create a RAM disk on Windows on the D: drive

I start Memcached with the -e option

C:\Users********\memcached\1.6.12\libevent-2.1\x64>memcached.exe -A -e D:\backup [restart] no metadata save file, starting with a clean cache

I check the file system and I can see that the backup file is created:

D:>dir Volume in drive D has no label. Volume Serial Number is 5881-2000

Directory of D:\

07/12/2021 11:17 67,108,864 backup 1 File(s) 67,108,864 bytes 0 Dir(s) 988,749,824 bytes free

I start a telnet session and set and get mykey

telnet localhost 11211

set mykey 0 300 4 data STORED get mykey VALUE mykey 0 4 END

I stop Memcached using Ctrl-C and restart

C:\Users********\memcached\1.6.12\libevent-2.1\x64>memcached.exe -A -e D:\backup [restart] no metadata save file, starting with a clean cache Signal handled: Interrupt.

C:\Users********\memcached\1.6.12\libevent-2.1\x64>memcached.exe -A -e D:\backup [restart] no metadata save file, starting with a clean cache

Clone this wiki locally