stianeikeland / node-etcd

:satellite: Etcd client for nodejs
BSD 3-Clause "New" or "Revised" License
259 stars 85 forks source link

TTL refresh etcd 2.3.x+ broken #65

Open thebigredgeek opened 7 years ago

thebigredgeek commented 7 years ago

If you want to refresh a TTL on 2.3.x+, you cannot send a key with the SET operation. There doesn't appear to be a way to do that with this lib

felipejfc commented 7 years ago
    this.client.set(p,
      val,
      {
        prevExist: true,
        ttl: this.expire
      }
    )
thebigredgeek commented 7 years ago

Yea, we need to add compatibility for later versions of etcd. PRs welcome

felipejfc commented 7 years ago

unfortunately this lib seems pretty dead to me, don't know if a PR would worth it...