3 ms·
What is an element store? An object store? Unless I'm not understanding the use case, if this is a persistent object cache, defining an interface on each type
by mmf 12y ago
What is an element store? An object store?
Unless I'm not understanding the use case, if this is a persistent object cache, defining an interface on each type you want to store sounds like a lot of overhead...
Why not implementing a persistent LRU cache map instead?
- sebcat 12y ago> Unless I'm not understanding the use case, if this is a persistent object cache, defining an interface on each type you want to store sounds like a lot of overhead... It's one of the things I feel I havn't gotten right yet. I've made a couple of different implementations of this functionality before (stor, elstore on my github profile). Neither of them "feels" good in the way they handle serialization and caching of different types. It comes down to the lack of generics maybe, but at the same time I can't help but thinking that there is a better, more idiomatic go way. > Why not implementing a persistent LRU cache map instead? What would be the difference from the current implementation?