UNPKG

@lsdsoftware/s3-log-store

Version:

Efficiently store and retrieve log-structured data (append only) in S3

14 lines (12 loc) 341 B
import { makeWorkDir } from "./work-dir.js" export function makeDeleteInactiveTask({ workDir, inactiveTtlDays }: { workDir: ReturnType<typeof makeWorkDir> inactiveTtlDays: number }) { return { async run() { const fileNames = await workDir.deleteInactive(inactiveTtlDays) return { filesDeleted: fileNames } } } }