LocalStorage

tyrian.cmds.LocalStorage
object LocalStorage

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Result

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def clear[F[_] : Async, Msg](toMessage: Result => Msg): Cmd[F, Msg]

delete all data entries from local storage

delete all data entries from local storage

Attributes

def getItem[F[_] : Async, Msg](key: String, toMessage: Either[NotFound, Found] => Msg): Cmd[F, Msg]

load text data from local storage

load text data from local storage

Attributes

def getItem[F[_] : Async, Msg](key: String)(toMessage: Either[NotFound, Found] => Msg): Cmd[F, Msg]

load text data from local storage

load text data from local storage

Attributes

def key[F[_] : Async, Msg](index: Int, toMessage: Result => Msg): Cmd[F, Msg]

Look up a key by index

Look up a key by index

Attributes

def key[F[_] : Async, Msg](index: Int)(toMessage: Result => Msg): Cmd[F, Msg]

Look up a key by index

Look up a key by index

Attributes

def length[F[_] : Async, Msg](toMessage: Length => Msg): Cmd[F, Msg]

Check how many data entries exist

Check how many data entries exist

Attributes

def removeItem[F[_] : Async, Msg](key: String, toMessage: Result => Msg): Cmd[F, Msg]

delete a data entry from local storage

delete a data entry from local storage

Attributes

def removeItem[F[_] : Async, Msg](key: String)(toMessage: Result => Msg): Cmd[F, Msg]

delete a data entry from local storage

delete a data entry from local storage

Attributes

def setItem[F[_] : Async, Msg](key: String, data: String, toMessage: Result => Msg): Cmd[F, Msg]

save text data to local storage

save text data to local storage

Attributes

def setItem[F[_] : Async, Msg](key: String, data: String)(toMessage: Result => Msg): Cmd[F, Msg]

save text data to local storage

save text data to local storage

Attributes