Skip to content

moyodiallo/scache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scache

Scache is a simple module of (key,value) cache system using SQlite3 to persists some information on disk. It remains simple as we could see the interface.

module Cache: sig
  type t
  val get: t -> key:string -> string option
  val set: t -> key:string -> value:string -> unit
  val remove: t -> key:string -> unit
  val start: name:string -> t
end

Scache use some component of ocurrent about SQlite3. The aims of Scache is to light and simplify as much as possible the (key,value) caching.

Scache create ./var/db/ directory where the SQlite file scache.db is stored. The env variable SCACHE_VAR can be used to set a preference directory (ex. SCACHE_VAR=~/.var/db).

Licensing

Scache is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages