nit: Use the term value rather than data for Key + *Value* stores.

Super nitty, but they are KeyValue stores, not KeyData stores.
This commit is contained in:
Jesse Rosenberger 2018-12-18 10:12:01 +02:00
parent c7f6b43234
commit 098c893990
No known key found for this signature in database
GPG key ID: C0CCCF81AA6C08D8
2 changed files with 4 additions and 4 deletions

View file

@ -22,11 +22,11 @@ export class MemcachedCache implements KeyValueCache {
async set(
key: string,
data: string,
value: string,
options?: { ttl?: number },
): Promise<void> {
const { ttl } = Object.assign({}, this.defaultSetOptions, options);
await this.client.set(key, data, ttl);
await this.client.set(key, value, ttl);
}
async get(key: string): Promise<string | undefined> {

View file

@ -31,11 +31,11 @@ export class RedisCache implements KeyValueCache<string> {
async set(
key: string,
data: string,
value: string,
options?: { ttl?: number },
): Promise<void> {
const { ttl } = Object.assign({}, this.defaultSetOptions, options);
await this.client.set(key, data, 'EX', ttl);
await this.client.set(key, value, 'EX', ttl);
}
async get(key: string): Promise<string | undefined> {