redis/llen
Get the length of a list
const app = mvfm(prelude, redis);
const prog = app({}, ($) => {
return $.begin(
$.redis.rpush("tasks", "a", "b", "c"),
$.redis.llen("tasks")
);
});
await fold(
defaults(app, { redis: memoryRedisInterpreter }),
prog
); Ctrl+Enter