File tree 2 files changed +25
-4
lines changed
packages/client/lib/commands
2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,13 @@ describe('ACL LOG', () => {
37
37
'age-seconds' ,
38
38
'4.096' ,
39
39
'client-info' ,
40
- 'id=6 addr=127.0.0.1:63026 fd=8 name= age=9 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=48 qbuf-free=32720 obl=0 oll=0 omem=0 events=r cmd=auth user=default'
40
+ 'id=6 addr=127.0.0.1:63026 fd=8 name= age=9 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=48 qbuf-free=32720 obl=0 oll=0 omem=0 events=r cmd=auth user=default' ,
41
+ 'entry-id' ,
42
+ 0 ,
43
+ 'timestamp-created' ,
44
+ 1675361492408 ,
45
+ 'timestamp-last-updated' ,
46
+ 1675361492408
41
47
] ] ) ,
42
48
[ {
43
49
count : 1 ,
@@ -46,7 +52,10 @@ describe('ACL LOG', () => {
46
52
object : 'AUTH' ,
47
53
username : 'someuser' ,
48
54
ageSeconds : 4.096 ,
49
- clientInfo : 'id=6 addr=127.0.0.1:63026 fd=8 name= age=9 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=48 qbuf-free=32720 obl=0 oll=0 omem=0 events=r cmd=auth user=default'
55
+ clientInfo : 'id=6 addr=127.0.0.1:63026 fd=8 name= age=9 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=48 qbuf-free=32720 obl=0 oll=0 omem=0 events=r cmd=auth user=default' ,
56
+ entryId : 0 ,
57
+ timestampCreated : 1675361492408 ,
58
+ timestampLastUpdated : 1675361492408
50
59
} ]
51
60
) ;
52
61
} ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ type AclLogRawReply = [
24
24
_ : RedisCommandArgument ,
25
25
ageSeconds : RedisCommandArgument ,
26
26
_ : RedisCommandArgument ,
27
- clientInfo : RedisCommandArgument
27
+ clientInfo : RedisCommandArgument ,
28
+ _ : RedisCommandArgument ,
29
+ entryId : number ,
30
+ _ : RedisCommandArgument ,
31
+ timestampCreated : number ,
32
+ _ : RedisCommandArgument ,
33
+ timestampLastUpdated : number ,
28
34
] ;
29
35
30
36
interface AclLog {
@@ -35,6 +41,9 @@ interface AclLog {
35
41
username : RedisCommandArgument ;
36
42
ageSeconds : number ;
37
43
clientInfo : RedisCommandArgument ;
44
+ entryId : number ;
45
+ timestampCreated : number ;
46
+ timestampLastUpdated : number ;
38
47
}
39
48
40
49
export function transformReply ( reply : Array < AclLogRawReply > ) : Array < AclLog > {
@@ -45,6 +54,9 @@ export function transformReply(reply: Array<AclLogRawReply>): Array<AclLog> {
45
54
object : log [ 7 ] ,
46
55
username : log [ 9 ] ,
47
56
ageSeconds : Number ( log [ 11 ] ) ,
48
- clientInfo : log [ 13 ]
57
+ clientInfo : log [ 13 ] ,
58
+ entryId : log [ 15 ] ,
59
+ timestampCreated : log [ 17 ] ,
60
+ timestampLastUpdated : log [ 19 ] ,
49
61
} ) ) ;
50
62
}
You can’t perform that action at this time.
0 commit comments