gs($ENV{ZING_REDIS}));
}
# BUILDERS
fun new_encoder($self) {
require Zing::Encoder::Json; Zing::Encoder::Json->new;
}
# METHODS
method drop(Str $key) {
return $self->client->del($key);
}
meth
owing methods:
=cut
=head2 decode
decode(Str $data) : HashRef
The decode method decodes the JSON data provided and returns the data as a hashref.
=over 4
=item decode example #1
# given: sy
encode
encode(HashRef $data) : Str
The encode method encodes and returns the data provided as JSON.
=over 4
=item encode example #1
# given: synopsis
$redis->encode({ status => 'ok' });
=