RHInception / jsonstats

system stats over rest in json (buzzzzwords here)
MIT License
22 stars 8 forks source link

rfe: a common caching system #3

Open tbielawa opened 10 years ago

tbielawa commented 10 years ago

So you know, like, each plugin isn't trying to reinvent the wheel every time

ashcrow commented 10 years ago

Good idea. You can copy my FS/Json based cache system from https://github.com/ashcrow/systats/ (https://github.com/ashcrow/systats/blob/master/server.py#L98) if that would work for you.

kelcecil commented 10 years ago

I think that you'll also want to consider the possibility of making timeout until the data is sale configurable as well. I can see cases where you'd want the cache to become stale faster.