Missing GET

This commit is contained in:
斟酌 鵬兄 2023-02-01 06:28:15 +08:00
parent d3e3e95422
commit f4ae670848

View File

@ -21,6 +21,19 @@ class ClientCompat
await this.client.connect();
}
async GET( key, handler )
{
try
{
await this._connect();
handler( await this.client.GET( key ) );
}
catch( error )
{
handler( undefined, error );
}
}
async HGET( key, field, handler )
{
try
@ -34,7 +47,6 @@ class ClientCompat
}
}
async HGETALL( key, handler )
{
try