Feature request - Redis support
I would like to have Redis support, because there is no decent page cache plugin at the moment that also supports Redis.
Would be nice to have support for:
- HHVM's Redis extension
- the PECL Redis Extension
- Predis library for PHP (fallback). (https://github.com/nrk/predis) (like this plugin has: https://nl.wordpress.org/plugins/redis-cache/)
If you have a good idea how to merge this in easily, it would be very nice. Otherwise I will have a look the in next month, if I can add Redis support and open a PR.
This would be awesome
<3 +1!
This would be very awesome. Anyone had a chance to try this out? PR's encouraged!
+1 I can't help with a PR, but with testing.
@JJJ I'd like to implement Redis support by wp-redis.
Could you start me up where to modify the existing code to switch engine?
Why does WP Spider Cache need Redis support when WP Redis already has Redis support (and comprehensive test coverage to boot)?
I've tried wp-redis + wp-spider-cache/advanced-cache.php based on https://github.com/stuttter/wp-spider-cache/issues/21#issuecomment-281373058
PHP Fatal error: Uncaught Error: Class 'Memcache' not found in */wp-content/plugins/wp-spider-cache/wp-spider-cache/includes/base-object.php:246
@szepeviktor I think what you're starting to do is a great approach:
- Install both WP Spider Cache & WP Redis
- Make changes to WP Spider Cache to work alongside WP Redis
- Send PR's for any general improvements
- Send PR's for WP Redis specific improvements
Long term, I can imagine bundling our own shim to work with whatever WP Redis provides, and/or relying on it entirely and adapting it's approach for our own internals.