pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
228 stars 68 forks source link

TBD: Automatic expiration of grouped key #219

Closed pySilver closed 6 years ago

pySilver commented 6 years ago

Hello,

I'm wondering if someone is interested in automatic grouped keys expiration which is not supported by Redis. What if we simply add some creation metadata for such keys and validate them on retrieval?

pySilver commented 6 years ago

eventually we can store 2 keys which is simpler in terms of data structure but requires 2 calls to determine if key should be expired.

danielbachhuber commented 6 years ago

Hi @pySilver,

Thanks for the suggestion. Could you provide a real-world example for this feature, to better understand the value it would provide?

Generally, the scope of WP Redis is to implement the WP Object Cache API and nothing more, so it's unlikely we'll add features beyond this.