0.8.31 • Published 6 months ago

@pandino/persistence-manager-memory v0.8.31

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
6 months ago

persistence-manager-memory

build-test license TypeScript

In Memory implementation of the Persistence Manager API.

Context

This package is part of the pandino-root monorepo. For detailed information about what is Pandino / how this package fits into the ecosystem, please consult with the related documentation(s).

Installation

Install via adding it to pandino-manifests

Only works, if @pandino/bundle-installer-dom is installed!

<script type="pandino-manifests">
  [
    ...,
    "https://unpkg.com/@pandino/persistence-manager-memory@0.8.14/dist/esm/persistence-manager-memory-manifest.json"
  ]
</script>

Install via BundleContext API

E.g.: directly via the Pandino instance.

const pandino: Bundle;

// ...

pandino.getBundleContext().installBundle('https://unpkg.com/@pandino/persistence-manager-memory@0.8.14/dist/esm/persistence-manager-memory-manifest.json');

Usage

export default class Activator {
  async start(context) {
    this.persistenceManagerReference = context.getServiceReference('@pandino/persistence-manager/PersistenceManager');
    this.persistenceManager = context.getService(this.persistenceManagerReference);

    console.log(this.persistenceManager.exists('test.pid'));
  }

  async stop(context) {
    context.ungetService(this.persistenceManagerReference);
  }
}

License

Eclipse Public License - v 2.0

0.8.30

6 months ago

0.8.31

6 months ago

0.8.29

10 months ago

0.8.28

10 months ago

0.8.25

1 year ago

0.8.24

1 year ago

0.8.27

1 year ago

0.8.26

1 year ago

0.8.23

1 year ago

0.8.22

1 year ago

0.8.20

1 year ago

0.8.19

2 years ago

0.8.18

2 years ago

0.8.17

2 years ago

0.8.16

2 years ago

0.8.15

2 years ago

0.8.14

2 years ago

0.8.13

2 years ago

0.8.12

2 years ago

0.8.9

2 years ago

0.8.8

2 years ago