RedisAdapter
Implements
Constructors
new RedisAdapter(data)
1new RedisAdapter(data: Object | Object & RedisAdapterOptions): RedisAdapter
Parameters
Parameter | Type |
---|---|
data | Object | Object & RedisAdapterOptions |
Returns
Source
seyfert/src/cache/adapters/redis.ts:22
Properties
Property | Type |
---|---|
client | Redis |
isAsync | boolean |
namespace | string |
Methods
addToRelationship()
1addToRelationship(to: string, keys: string | string[]): Promise<void>
Parameters
Parameter | Type |
---|---|
to | string |
keys | string | string [] |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:203
bulkAddToRelationShip()
1bulkAddToRelationShip(data: Record<string, string[]>): Promise<void>
Parameters
Parameter | Type |
---|---|
data | Record <string , string []> |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:193
contains()
1contains(to: string, keys: string): Promise<boolean>
Parameters
Parameter | Type |
---|---|
to | string |
keys | string |
Returns
Promise
<boolean
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:185
count()
1count(to: string): Promise<number>
Parameters
Parameter | Type |
---|---|
to | string |
Returns
Promise
<number
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:163
flush()
1flush(): Promise<void>
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:176
get()
get(keys)
1get(keys: string[]): Promise<any[]>
Parameters
Parameter | Type |
---|---|
keys | string [] |
Returns
Promise
<any
[]>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:65
get(keys)
1get(keys: string): Promise<any>
Parameters
Parameter | Type |
---|---|
keys | string |
Returns
Promise
<any
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:66
getToRelationship()
1getToRelationship(to: string): Promise<string[]>
Parameters
Parameter | Type |
---|---|
to | string |
Returns
Promise
<string
[]>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:189
keys()
1keys(to: string): Promise<string[]>
Parameters
Parameter | Type |
---|---|
to | string |
Returns
Promise
<string
[]>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:158
patch()
patch(updateOnly, id)
1patch(updateOnly: boolean, id: [string, any][]): Promise<void>
Parameters
Parameter | Type |
---|---|
updateOnly | boolean |
id | [string , any ][] |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:102
patch(updateOnly, id, data)
1patch(2 updateOnly: boolean,3 id: string,4data: any): Promise<void>
Parameters
Parameter | Type |
---|---|
updateOnly | boolean |
id | string |
data | any |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:103
remove()
1remove(keys: string | string[]): Promise<void>
Parameters
Parameter | Type |
---|---|
keys | string | string [] |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:167
removeRelationship()
1removeRelationship(to: string | string[]): Promise<void>
Parameters
Parameter | Type |
---|---|
to | string | string [] |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:211
removeToRelationship()
1removeToRelationship(to: string, keys: string | string[]): Promise<void>
Parameters
Parameter | Type |
---|---|
to | string |
keys | string | string [] |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:207
scan()
scan(query, returnKeys)
1scan(query: string, returnKeys?: false): Promise<any[]>
Parameters
Parameter | Type |
---|---|
query | string |
returnKeys ? | false |
Returns
Promise
<any
[]>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:47
scan(query, returnKeys)
1scan(query: string, returnKeys: true): Promise<string[]>
Parameters
Parameter | Type |
---|---|
query | string |
returnKeys | true |
Returns
Promise
<string
[]>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:48
set()
set(id)
1set(id: [string, any][]): Promise<void>
Parameters
Parameter | Type |
---|---|
id | [string , any ][] |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:85
set(id, data)
1set(id: string, data: any): Promise<void>
Parameters
Parameter | Type |
---|---|
id | string |
data | any |
Returns
Promise
<void
>
Implementation of
Source
seyfert/src/cache/adapters/redis.ts:86
values()
1values(to: string): Promise<any[]>
Parameters
Parameter | Type |
---|---|
to | string |
Returns
Promise
<any
[]>