*

webcity

  • *****
  • 252 posts
Anyone using Redis cache?
« on: November 08, 2024, 12:22:16 PM »
Hi,

Is anyone using the Redis cache option in osclass?

I'm using APCu at the moment and it sees to work well and I was considering trying the Redis cache if it is as stable as APCu.

If you are using Redis, could you please share your osclass configuration file for the Redis settings?

Many thanks

*

Wiz

  • ****
  • 153 posts
Re: Anyone using Redis cache?
« Reply #1 on: November 25, 2024, 09:05:41 PM »
I'm using Redis Sentinel via a custom coded cache class (also capable of clustering/sharding) implemented in core, via Predis, and had trashed other caching services/options so my redis config wouldn't be of any use to you as it is an advanced custom config.

For the basic osclass redis config and when you have a local redis instance installed on the same server as osclass, use redis in socket mode which is usually 25 to 30% faster than in tcp mode. Use 1 redis db for php sessions and another db for caching.

What specifically do you need help with?