frideosapps / frideos_kvprx

A library with persistent and reactive classes, and key/value pairs storing helpers, using the sqflite plugin.
BSD 2-Clause "Simplified" License
8 stars 0 forks source link

Invalidation Support [Feature Request] #2

Open taliptako opened 5 years ago

taliptako commented 5 years ago

There are only two hard problems in Computer Science: cache invalidation, and naming things. Phil Karlton

When we add key value we should be able to set expire date too and in the get methods if this expire date is crossed we should delete them , this can be hard to implement i dont know if you think about implementing a feature like this.

frideosapps commented 5 years ago

@taliptako I think it could be added, but it needs some major changes due to the fact the current structure is really simple, it needs at least an extra column for the timestamp and some methods to handle all the stuff (set key/value lifespan, modify, remove etc.). I'll figure it out something to avoid breaking changes. Thanks for your suggestion.