Method: Redis#ltrim
- Defined in:
- lib/redis.rb
#ltrim(key, start, stop) ⇒ String
Trim a list to the specified range.
401 402 403 404 405 |
# File 'lib/redis.rb', line 401 def ltrim(key, start, stop) synchronize do @client.call [:ltrim, key, start, stop] end end |