class

Store

Inherits Reference < Object

Thread-safe in-memory store. Swap it for a database (e.g. crystal-pg or crystal-sqlite3 via crystal-db) by keeping the same methods.

Constructors

Class methods

instance
Source

Instance methods

clear
Source
create(title : String) : Task
Source
delete(id : Int64) : Bool
Source
find(id : Int64) : Task | Nil
Source
update(id : Int64, & : Task -> Task) : Task | Nil
Source