RHInception / jsonstats

system stats over rest in json (buzzzzwords here)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rfe: a common caching system

tbielawa opened this issue · comments

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

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.

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.