How would I access the available RedisCache
class and it's properties/methods in PHP/plugins? (https://buildwithcraft.com/classreference/etc/cache/RedisCache)
I'm just starting to learn Redis and can't seem to find more information about how to start using the available class. I have set cacheMethod to redis
, and created a rediscache.php
file in craft/config/
.
I want to explore connecting to db, inserting my own keys/values and retrieving data for my other plugins, but can't seem to find the right path path. I tried things like:
echo craft()->redisCache->hostname;
But that returns CExeption
errors. What am I missing?