Skip to content

[feat] Add a cacheable-lookup example #1

@Kikobeats

Description

@Kikobeats

The library is mentioned to use it with cacheable-lookup has been taking into account.

Since cacheable-lookup already accepts a cache, what should be a good example, using it with tangerine?

Maybe in this way?

const Keyv = require('@keyvhq/core')

const cache = new Keyv()

const cacheableLookup = new CacheableLookup({
  cache,
  resolver: new Tangerine({ 
    // explicitly disabled since `cacheable-lookup` already takes case
    cache: false 
  }) 
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions