Documentation

ExpoPusherRedisDriver
in package
implements ExpoPusherRepository

Interfaces, Classes, Traits and Enums

ExpoPusherRepository
Interface to include method to verify existance of the key in store

Table of Contents

$connection  : string
Name of connection
__construct()  : mixed
Create redis instance
exists()  : bool
Check whether specified key exists in store or not
forget()  : bool
Removes an Expo token with a given identifier.
retrieve()  : array<string|int, mixed>
Retrieves an Expo token with a given identifier.
store()  : bool
Stores an Expo token with a given identifier.

Properties

Methods

__construct()

Create redis instance

public __construct([string $connection = null ]) : mixed
Parameters
$connection : string = null
Return values
mixed

exists()

Check whether specified key exists in store or not

public static exists(string $key) : bool
Parameters
$key : string
Return values
bool

forget()

Removes an Expo token with a given identifier.

public forget(string $key[, string $deviceToken = null ]) : bool
Parameters
$key : string
$deviceToken : string = null
Return values
bool

retrieve()

Retrieves an Expo token with a given identifier.

public retrieve(string $key) : array<string|int, mixed>
Parameters
$key : string
Return values
array<string|int, mixed>

store()

Stores an Expo token with a given identifier.

public store( $key,  $deviceToken) : bool
Parameters
$key :
$deviceToken :
Return values
bool

Search results