mbland/custom-links

View on GitHub
lib/redis/list-helper.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

var PromiseHelper = require('./promise-helper')

module.exports = class ListHelper {
  constructor(clientImpl) {
    this.impl = clientImpl
  }

  removeItem(key, item) {
    return PromiseHelper.expect(1, done => this.impl.lrem(key, 1, item, done))
  }
}