Skip to content

is dynamic duration possible? #248

@emretoprak

Description

@emretoprak

Hi,

In some cases, it may be necessary to dynamically give the duration parameter.

something like this.

cache((req) => {
  if (req.mycondition) {
    return '1 minute';
  }

  return '1 hour';
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions