Skip to content

Commit

Permalink
LifetimesService => CachePolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltazore committed Jul 5, 2024
1 parent 51f219d commit 0fcead7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/adapters/cache-lifetime/new.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { LifetimesService } from '@ember-data/request-utils';
import { CachePolicy } from '@ember-data/request-utils';
import BaseStore from 'ember-data/store';

export default class Store extends BaseStore {
constructor(args) {
super(args);
// This is default configuration that would be set automatically be Ember Data
this.lifetimes = new LifetimesService(this, {
this.lifetimes = new CachePolicy(this, {
apiCacheSoftExpires: 30_000,
apiCacheHardExpires: 60_000
});
Expand Down

0 comments on commit 0fcead7

Please sign in to comment.