0.3.1-alpha.0 • Published 2 years ago

@milliejs/store-memory v0.3.1-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

MillieJS: Memory Store

Getting Started

Installation

npm add milliejs @milliejs/store-memory

Usage

import MillieJS from "milliejs"
import MillieCRUDStore from "@milliejs/store-*"
import GooglePubSubStore from "@milliejs/store-google-pubsub"
import MemoryStore from "@milliejs/store-memory"

const millie = new MillieJS()

const replicaStore = new MemoryStore({})

const muUpstreamCRUDInterface = new MillieCRUDStore({})
const myUpstreadGooglePubSubInterface = new GooglePubSubStore({})

const personResource = { id: "person" }
millie.registerResource(personResource, replicaStore, {
  sourcePublisher: muUpstreamCRUDInterface,
  sourceSubscriber: myUpstreadSubscriberInterface,
})

Contributing

The MillieJS library is currently in its early development stages and is welcoming contributions, feature requests, and feedback.

Disclaimer

The MillieJS library is currently in its early development stages and is not ready for use in production applications. There may be bugs and performance issues that have not yet been addressed. Use the library at your own risk and be sure to thoroughly test any implementation before deploying it to a live environment.

Please note that the API and functionality may change as the library evolves and stabilizes. If you choose to use MillieJS in your project, we recommend regularly checking for updates and making any necessary modifications to your code to ensure compatibility.

In summary, do not use the MillieJS library in a production environment until further notice.