Skip to content

๐Ÿ“œ Page operation model (in memory) with LRU & lifecycle strategy

License

Notifications You must be signed in to change notification settings

qddegtya/llpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


llpage


๐Ÿš€ page operation model (in memory) with LRU & lifecycle strategy.

All Contributors Coverage Status npm Known Vulnerabilities

Install

$ npm install llpage

Feature

  • โš™๏ธ Support keep-alive in memory(LRU)
  • ๐Ÿš€ High-Performance page operator with Doubly Linked List(DLL)
  • ๐Ÿ’— Elegant api such as open/close/closeAll/refresh/closeOthers
  • ๐Ÿ‘€ reactive inside
  • ๐Ÿ“ฑ Support page lifecyle (sync/async)

Example

import { createLLPageManager, createPage } from 'llpage'

const testPage = createPage({
  data: {},

  async onCreate() {
    await xx()
  }

  async onStart() {
    await xx()
  }
})

const ll = createLLPageManager({
  size: 10
})

////////// some page op //////////
ll.open(testPage)
ll.close(testPage)
ll.closeOthers(testPage)
ll.closeAll()

Real-World Example

name description homepage
example simple examples inside this repo view

Awesome list

name description homepage
Rice ๐Ÿ“ฆ out-of-box micro-frontends solution view

Contributors

Thanks goes to these wonderful people (emoji key):

Archer (็‚ฝๅฎ‡)
Archer (็‚ฝๅฎ‡)

๐Ÿ’ป ๐Ÿš‡ ๐Ÿšง ๐ŸŽจ ๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

About

๐Ÿ“œ Page operation model (in memory) with LRU & lifecycle strategy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published