UNPKG
@kanadi/core
Version:
latest (0.1.3)
0.1.3
0.1.1
0.1.0
Multi-Layer CAPTCHA Framework with customizable validators and challenge bundles
@kanadi/core
/
src
/
database
/
redis.config.ts
11 lines
(9 loc)
•
221 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
type { DatabaseConfig, RedisDatabaseOptions } from
"./types"
;
export
class
RedisDatabaseConfig
{
static
forRoot
(options: RedisDatabaseOptions)
: DatabaseConfig {
return
{ type:
"redis"
, options, }; } }