Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Key/Value store disk-based caching solution (What would fit in well with U++?)
Re: Key/Value store disk-based caching solution [message #52346 is a reply to message #52343] Wed, 11 September 2019 10:20 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
jjacksonRIAB wrote on Wed, 11 September 2019 07:24
I've already looked at lmdb and people have written wrappers for it in C++ but I'd rather have something that fits in better with how U++ works. As far as I can tell it uses a btree and COW with memory mapped files. I think it would be nice, and probably not a lot of work, to write a U++ style wrapper for it unless there are other options. I have an example discord client I'm working on to learn more about U++ and I'd like to be able to cache data like images, Values, etc because it becomes very expensive/slow to grab that data off the Internet each and every time. It would also be nice to have it mmapped so that I don't have to generate copies of that data and can reference it directly.

What would you recommend?


Wrapper would be nice.

Alternatives (from the head): To cache things from the internet (or from over the network), traditional approach to cache them as files works well. Done that in the past.

For key/value storage, if I would be too lazy to use other options (like creating a wrapper), I would use Sqlite3 or MySQL with trivial schema as key/value storage.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drawing ellipse with Painter with 2 foci
Next Topic: Future of C++
Goto Forum:
  


Current Time: Sat Apr 27 13:31:44 CEST 2024

Total time taken to generate the page: 0.03057 seconds