using in-memory data-structures -
using in-memory data-structures -
i have client requirement of not utilize rdbms, instead using in-memory data-structures if server restarted application state revert lastly state saved.
i don't have thought of using in-memory info , used work mysql ,but not in memory if please guide me bit , tutorial or something
below examples ...
public object save(object object, class c) { database.ofy().put(object); homecoming object; } public void delete(long id, class c) { database.ofy().delete(c, id); } public object findbyid(string id, class c) { homecoming database.ofy().find(c, id); } public iterable<object> findall(class c) { iterable<object> models = database.ofy().query(c).fetch(); homecoming models; }
}
thanks
you can utilize sqlite, has hooks lot of languages.
the default utilize sqlite file-based, can used in-memory.
in-memory-database
Comments
Post a Comment