Overview

Namespaces

  • LeanCloud
    • Engine
    • Operation
    • Storage
    • Uploader

Classes

  • CookieStorage
  • SessionStorage

Interfaces

  • IStorage
  • Overview
  • Namespace
  • Class

Interface IStorage

Storage Interface

Simple key-value storage interface for persisting session related data. At SDK level, it is attached to Client, and used for storing session token of a logged-in User.

Direct known implementers

LeanCloud\Storage\CookieStorage, LeanCloud\Storage\SessionStorage
Namespace: LeanCloud\Storage
Located at LeanCloud/Storage/IStorage.php
Methods summary
public
# set( string $key, mixed $val )

Set value by key

Set value by key

Parameters

$key
$val

Returns


$this
public mixed
# get( string $key )

Get value by key

Get value by key

Parameters

$key

Returns

mixed
public
# remove( string $key )

Remove key from storage

Remove key from storage

Parameters

$key

Returns


$this
public
# clear( )

Clear all data in storage

Clear all data in storage

Returns


$this
API documentation generated by ApiGen