Simplecache Lua Library

User avatar
crazyR
Member
 
Posts: 47
Joined: Thu Jun 19, 2014 14:41
GitHub: Ryan-Nolan
IRC: crazyR
In-game: crazyR

Simplecache Lua Library

by crazyR » Thu Jul 02, 2015 09:36

Hi guys,

I created this little library initially for a mod that showed dynamic information on a formspec, but has since been used in many other little projects.
This is exactly what it says in the title. it is a way of caching information for use in your scripts, It is not file based and only stores the cached data in a table, the data is then removed after a predefined expiry time.


Find it on Git Hub, Feel free to contribute anything you feel would improve it:
https://github.com/crazyR14/simplecache-lua-library
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Simplecache Lua Library

by rubenwardy » Thu Jul 02, 2015 10:42

Looks good. It's a good improvement on the existing Context storage pattern, as it deletes after a while.
 


Return to Minetest-Related

Who is online

Users browsing this forum: No registered users and 2 guests

cron