lpush method

  1. @override
Future<int> lpush(
  1. String key,
  2. String value
)
override

Prepends value to the list stored at key.

Returns the length of the list after the push operation. Throws a TRServerException if the key holds a non-list value.

Implementation

@override
Future<int> lpush(String key, String value) =>
    _executeOnKey(key, (client) => client.lpush(key, value));