summary refs log tree commit diff
path: root/api/src/util/entities/AssetCacheItem.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-07-17 18:52:41 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-07-17 18:56:47 +0200
commitcf3873d62ff30da691dae7f7424c6365b5a72edc (patch)
treec65487734cf922e3a6ad70a0f21a93e337e8ec1e /api/src/util/entities/AssetCacheItem.ts
parentDisplay offline members in member list (#788) (diff)
downloadserver-cf3873d62ff30da691dae7f7424c6365b5a72edc.tar.xz
Add local disk caching for fetched assets
Diffstat (limited to 'api/src/util/entities/AssetCacheItem.ts')
-rw-r--r--api/src/util/entities/AssetCacheItem.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/api/src/util/entities/AssetCacheItem.ts b/api/src/util/entities/AssetCacheItem.ts
new file mode 100644

index 00000000..7fb4e1e6 --- /dev/null +++ b/api/src/util/entities/AssetCacheItem.ts
@@ -0,0 +1,16 @@ +import { Headers } from "node-fetch"; + +export class AssetCacheItem { + public Key: string; + public FilePath: string; + public Headers: any; + + constructor(key: string){ + this.Key = key; + } + /*constructor(key: string, filePath: string, headers: Headers) { + this.Key = key; + this.FilePath = filePath; + this.Headers = headers; + }*/ +} \ No newline at end of file