Created
March 8, 2013 03:34
-
-
Save akira1908jp/5114034 to your computer and use it in GitHub Desktop.
symfony 1.4 use sessionstorage memcached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symfony memcachedを使用したセッションストレージ設定 | |
[project]/apps/[appName]/config/factories.yml | |
storage: | |
class: sfCacheSessionStorage | |
param: | |
session_name: sfproject #[required] name of session to use | |
session_cookie_path: / #[required] cookie path | |
#session_cookie_domain: example.com #[required] cookie domain | |
session_cookie_domain: localhost #[required] cookie domain | |
session_cookie_lifetime: +30 days #[required] liftime of cookie | |
session_cookie_secure: false #[required] send only if secure connection | |
session_cookie_http_only: true #[required] accessible only via http protocol | |
cache: | |
# class: sfAPCCache #[required] define the cache strategy | |
class: sfMemcacheCache #[required] define the cache strategy | |
#param: ~ #[required] this empty key is required or you will get warnings | |
param: | |
servers: # Array of servers | |
localserver: | |
#host: localhost # hostname or IP of mamcache server | |
host: localhost # hostname or IP of mamcache server | |
port: 11211 # default memcache port | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment