Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H authored Jul 8, 2024
1 parent a891227 commit e50a5d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const { Aurora } = require('earthmc') // CJS

However, you may want to create your own map instance to customize the expiry time of the cache.
```ts
import { Squaremap, Dynmap } from 'earthmc'
import { Squaremap } from 'earthmc'

const Aurora = new Squaremap('aurora', 10) // Default Squaremap TTL is 30s.
const Nova = new Dynmap('nova', 90) // Default Dynmap TTL is 120s.
const Aurora = new Squaremap('aurora') // Defaults to `5000` (or 5s).
const Aurora = new Squaremap('aurora', 30 * 1000) // Keep cached for half a minute.
```

## Basic Usage
Expand Down

0 comments on commit e50a5d4

Please sign in to comment.