Set timeout in local cache (#1140)
This commit is contained in:
parent
f8b1e40944
commit
73b71e5587
|
@ -63,7 +63,7 @@ sub createToken {
|
|||
|
||||
# Dereference $infos
|
||||
my %h = %$infos;
|
||||
$self->cache->set( $id, to_json( \%h ) );
|
||||
$self->cache->set( $id, to_json( \%h ), $self->timeout . ' s' );
|
||||
return $id;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user