

const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
const require_BaseRecord = require('../../../storage/BaseRecord.js');
const require_uuid = require('../../../utils/uuid.js');
let class_transformer = require("class-transformer");
class_transformer = require_rolldown_runtime.__toESM(class_transformer);

//#region src/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.ts
var _ref;
var SingleContextLruCacheRecord = class SingleContextLruCacheRecord extends require_BaseRecord.BaseRecord {
	constructor(props) {
		super();
		this.type = SingleContextLruCacheRecord.type;
		if (props) {
			this.id = props.id ?? require_uuid.uuid();
			this.createdAt = props.createdAt ?? /* @__PURE__ */ new Date();
			this.entries = props.entries;
			this._tags = props.tags ?? {};
		}
	}
	getTags() {
		return { ...this._tags };
	}
};
SingleContextLruCacheRecord.type = "SingleContextLruCacheRecord";
require_decorate.__decorate([(0, class_transformer.Type)(() => Object), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof Map !== "undefined" && Map) === "function" ? _ref : Object)], SingleContextLruCacheRecord.prototype, "entries", void 0);

//#endregion
exports.SingleContextLruCacheRecord = SingleContextLruCacheRecord;