popFirst method

Future<RedisReply> popFirst(
  1. String key, [
  2. int? count
])

LPOP - Pops the first element of a list (head)

Implementation

Future<RedisReply> popFirst(String key, [int? count]) async {
  if (count != null) return command('LPOP', [key, '$count']);
  return command('LPOP', [key]);
}