lakutata
Version:
An IoC-based universal application framework.
51 lines (34 loc) • 1.29 kB
JavaScript
import { i as e } from "../../../../vendor/Package.65.mjs";
import { URLBuilder as o } from "../../../lib/helpers/URLBuilder.mjs";
import { IsDriverPackageInstalled as r } from "../lib/IsDriverPackageInstalled.mjs";
import "buffer";
import "../../../../vendor/Package.5.mjs";
import "../exceptions/CacheDriverNotFoundException.mjs";
import "../../../lib/base/abstracts/Exception.mjs";
import "../../../lib/base/internal/BasicInfo.mjs";
import "../../../lib/helpers/As.mjs";
import "../../../../vendor/Package.6.mjs";
import "../../../../vendor/Package.7.mjs";
import "../../../lib/base/internal/ThrowWarning.mjs";
import "../../../lib/helpers/Templating.mjs";
import "../../../lib/base/internal/CamelCase.mjs";
import "../../../lib/helpers/NoCase.mjs";
async function s(s) {
r("mongodb");
const a = (await import("../../../../vendor/Package.68.mjs")).KeyvMongo;
const m = new o;
m.protocol = "mongodb";
m.host = s.host;
m.port = s.port;
m.username = s.username;
m.password = s.password;
return new e({
store: new a(m.toString(), {
db: s.database,
namespace: s.namespace,
collection: s.collection
}),
namespace: s.namespace
});
}
export { s as CreateMongoCacheAdapter };