decred / politeia

ISC License
110 stars 75 forks source link

ticketvote: Move inventory cache to db. #1649

Closed lukebp closed 1 year ago

lukebp commented 2 years ago

This commit rewrites the ticketvote inventory cache.

The initial plugin implementations were part of an extremely large commit that added the tstore backend. The caches were saved to the file system as a quick and dirty way to get things into production, with the intention of revisting them at a later date. API was later added that allowed the plugins to cache data in the tstore database.

The new inventory cache that was added in this commit has an improved API, better documentation, and was moved off of the file system and into the tstore database.