Memcache Plugin¶
This plugin implements the memcache protocol for cache contents.
インストール¶
次の行を plugin.config
に追加してください。
tsmemcache.so 11211
このケースでは、プラグインはデフォルトの振る舞いをします
Listen for memcache traffic on the default memcache port 11211
Write memcache data to the cache in the background (without waiting)
設定¶
もしくは、設定を指定することも可能です。
tsmemcache.so <path-to-plugin>/sample.tsmemcache.config
After modifying plugin.config, restart Traffic Server (sudo traffic_ctl server restart) the configuration is also re-read when a management update is given (sudo traffic_ctl config reload)
オプション¶
フラグとオプションは次のとおりです。
port
: A single port to listen on for memcache protocol commands.
Options in the code:
TSMEMCACHE_WRITE_SYNC
whether or not to wait for the write to complete.