PedroSena
PedroSena

Reputation: 653

Varnish Cache on Memcached

I'd like to know if is possible to use memcached as the default storage for Varnish cache. Searching on the web I found https://github.com/sodabrew/libvmod-memcached but the examples that I found so far was just about manually storing/retrieving the content on memcached using VCL rules.

What I'm looking for is memcached as the default storage for Varnish, just like we do with file/memory today.

Is there some way to do this ? Thanks in advance

Upvotes: 0

Views: 1734

Answers (1)

ivy
ivy

Reputation: 5559

Please have a look at the architecture document on Varnish. You can see the designer had specific ideas on the backend (all in memory, let the kernel decide what goes to swap/disk). Memcache doesn't really fit there. Can you explain why Varnish as-is is insufficient, and you want memcache as the back-end of varnish?

If you want a front-end cache based on memcache, there are probably other solutions or you could write one. I wouldn't pick Varnish just for the VCL language, as I think it's a complex language to accomplish proper caching.

Upvotes: 1

Related Questions