ltrim #
Trims an existing list so that it will contain only the specified range of elements specified.
ltrim(key, start, stop, [options], [callback]) #
Arguments | Type | Description |
---|---|---|
key | string | Key identifier |
start | int | Starting position of the range of items to keep (inclusive) |
stop | int | Ending position of the range of items to keep (inclusive) |
options | JSON Object | Optional parameters |
callback | function | Callback |
Options #
Option | Type | Description | Default |
---|---|---|---|
queuable | boolean | Make this request queuable or not | true |
Return value #
Returns the MemoryStorage
object to allow chaining.
Callback Response #
Returns null if successful.
Usage #
kuzzle.memoryStorage.ltrim("key", 1, 2, new ResponseListener<Void>() {
@Override
public void onSuccess(Void v) {
// callback called once the action has completed
}
@Override
public void onError(JSONObject error) {
}
});
Edit this page on Github(opens new window)