config.asset_host
config.action_controller.asset_host = “http://fs%d.rorlab.com"Caching Store
| CACHING STORE | 내용 |
|---|---|
| FileStore | cache를 개별 파일에 저장하고 읽어온다. |
| MemoryStore | cache를 hash 변수에 저장하고 읽어온다. |
| MemCacheStore | memcache를 사용하여 저장하고 읽어온다 |
FileStore
MemoryStore
MemCacheStore
MemCacheStore는 여러 대의 memcache server를 이용해서 효율적인 caching 처리를 할 수 있습니다.
다음과 같이 서버 목록과 option들을 인수로 전달 받습니다.
# MemCacheStore 사용. 192.168.10.1:11211, 192.168.10.2:11212를 memcache server로 설정config.cache_store = :mem_cache_store, '192.168.10.1:11211′, '192.168.10.2:11212′, :namespace => 'rorlab'