anchovycation / metronom

Easy to use Redis ORM based on node-redis with TypeScript support
https://anchovycation.github.io/metronom/
GNU General Public License v3.0
7 stars 3 forks source link

String get/set added #59

Closed saracalihan closed 1 year ago

saracalihan commented 1 year ago

Close #43

setKey

Set String key

Paramaters: paramater Type Default Value
key string
value string
  const isOk = await metronom.setKey('foo', 'bar'); // OK

getKey

Get String key

Paramaters: paramater Type Default Value
key string
  // await metronom.setKey('foo', 'bar');
  const value = await metronom.getKey('foo'); // bar