Custom cache store – possible?

Hi.

I want to define my own cache store but I have no idea how to use in
my app.

Rails initializer reads environment config before loading app
initializers and plugins. So, i cant write:

config.cache_store = :my_beautiful_cache_store, ‘localhost:641’

even if I put ActiveSupport::Cache::MyBeautifulCacheStore in config/
initializers.

Now i think it is impossible to define my own cache store. Am I right?

Thanks in advance.

On Mar 31, 9:35 am, Alex G. [email protected] wrote:

Hi.

I want to define my own cache store but I have no idea how to use in
my app.

Rails initializer reads environment config before loading app
initializers and plugins. So, i cant write:

config.cache_store = :my_beautiful_cache_store, ‘localhost:641’

I don’t think that’s true - I’ve used libmemcached_store which is a
plugin.

Fred