npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dao3fun/storage-rocket

v1.3.3

Published

Storage Rocket是一个为优化数据库性能的npm包。它提供了数据缓存和上传组等功能,旨在帮助开发者在数据库读写限制下,实现更高效的数据处理。This npm package is designed to optimize database performance, improve resource utilization, and speed up data retrieval. It assists developers in achieving more efficient data pro

Readme

Storage Rocket 神岛版

介绍 Introduce

Storage Rocket是一个为优化数据库性能的npm包。它提供了数据缓存和上传组等功能,旨在帮助开发者在数据库读写限制下,实现更高效的数据处理。

Storage Rocket is an npm package designed to optimize database performance. It offers features such as data caching and batch uploading, aiming to assist developers in achieving more efficient data processing within database read/write limits.

使用 Usage

引入包 Import Package

在你的JavaScript或TypeScript文件中,通过import语句引入storage-rocket:

In your JavaScript or TypeScript file, import storage-rocket using the import statement:

import * as StorageRocket from "@dao3fun/storage-rocket";

基本用法 Basic Usage

以下是一个简单的示例,展示了如何使用Storage Rocket的基本功能:

Here is a simple example demonstrating how to use the basic functions of Storage Rocket:

// 示例代码,展示如何使用包提供的功能
const storageRocket = new StorageRocket(storage.getDataStorage("test"));
storageRocket.set("apple", 1);
storageRocket.set("banana", 2);
storageRocket.set("cherry", 3);
storageRocket.update("apple", (prevValue) => prevValue as number + 1);
storageRocket.remove("banana");
console.log(storageRocket.get("apple"));
const uploadGroup = storageRocket.applyForUploadGroup("apple");
uploadGroup.increment(10);
console.log(storageRocket.get("apple"));
uploadGroup.upload();
console.log(storageRocket.get("apple"), storageRocket.get("cherry"));
const list = await storageRocket.storage.list({
    cursor: 0
});
list.getCurrentPage().forEach((value) => {
    console.log(JSON.stringify(value));
});

贡献 Contribution

我们欢迎任何形式的贡献!如果你发现了bug,或者有任何改进建议,欢迎在GitHub仓库上提交issue或pull request。

We welcome contributions in any form! If you find any bugs or have suggestions for improvement, please feel free to submit an issue or pull request on the GitHub repository.

许可证 License

storage-rocket 遵循MIT许可证。

storage-rocket follows the MIT License.