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 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-memcached-monitor

v1.0.1

Published

memcached monitor for nodejs memcached监控,key管理

Downloads

1

Readme

node-memcached-monitor

stars Build Status

nodejs版本实现memcached服务监控、keys管理

本项目使用了es2015部分语法,请使用最新的运行环境,譬如不错的chrome、nodejs v8.0+

使用nodejs+vuejs+element-ui+webpack进行开发 作为学习项目,欢迎有需要的朋友一起进行探讨!

练手项目,欢迎拍砖!

实现功能:

  • 服务器基础数据:系统分配内存、存储占用内存、其他实时数据
  • 连接数:实时客户端连接数
  • 命令数:实时每秒处理命令数、key值命中率
  • 流量:实时每秒服务器发送流量
  • key:实现key搜索、查看、删除功能、占用大小、过期时间
  • 集群:支持集群模式

github 码云

运行示例

//获取代码
git clone https://gitee.com/aofong/node-memcached-monitor.git

//进入代码目录
cd node-memcached-monitor

//安装依赖
npm i 或者 npm install

//运行nodejs后台服务
node server/index   或者vscode直接按F5运行

//开发环境
npm run dev
http://localhost:3010 //运行开发环境web页面

//生产环境
npm run build
http://localhost:3000 //运行生产环境web页面

默认配置

默认采用mockjs数据模拟相关数据

您可要在配置页进行实例数据配置,配置完后记得重启服务!

默认存储

内置使用mssql存储缓存key值,表结构如下:

表名:caches

字段:name 建唯一索引,并忽略重复,建议配置定时任务来清理数据(每日清空一次)

id|name|size|ttl|platform -|-|-|-|- 1|cachekey|123|123456789|memcached

默认参数:

nodejs服务运行端口:3000

web界面运行端口:3010

缓存同步时间:15分钟

文件目录

文件|备注 -|- server| 存储nodejs服务代码 src |存储vuejs源文件 disk |生产环境代码 config.js |运行配置 server/sync/mssqlhelper.js | 内置mssql连接问题,可在此修改数据库连接 server/api.js| 接口服务,可在此移除mockjs数据 或者实现其他的存储

浏览器支持

现代浏览器、IE10+

技术支持

[email protected]

技术文档

nodejs vuejs element-ui webpack-cn

运行预览截图

服务监控

key管理

查看key

删除key

配置