Memcache
■ Make sure memcached is ready (подготовка к работе)
■ Cache information is stored in Ram (кэширование в память)
■ (для дистрибутивов) ubuntu or debian
apt-get install memcached
system > modules > mod_memcache
■ FreeSWITCH module mod_memcache (make sure its running) (убедиться что модуль собран)
■ Clear the server side session otherwise if we save an extension or dialplan it will write the xml file logout and back in resolves this
Check our work (как это работает):
■
memcache get section:name
single tenant:
memcache get dialplan:default (domain name if multitenant examples - default - заменить на имя домена)
● memcache get directory:
101@test.domain.com ● memcache get dialplan:test.domain.com
● memcache get dialplan:public
● memcache status verbose
● memcache flush
Установка memcached и проверка модуля
memcached
apt-get update
apt-get upgrade
apt-get install memcached
Make sure mod_memcached is running (Включить автозагрузку модуля)
●
freeswitch@internal> module_exists mod_memcache true
clear the cache (очистка кэша)
memcache flush
view the cache (просмотр кэша)
memcache get directory:1002@x.x.x.x
memcache get directory:1001@context
memcache get dialplan:context
memcache get dialplan:public
delete the cache (удаление из кэша)
memcache delete directory:1011@x.x.x.x
additional memcache commands (проверка статуса кэша)
memcache status verbose