标题: Redis入门知识 理论+实操
作者: #北郭
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1666815
时间: 2026-02-27 19:57:11
摘要:
作者: #北郭
板块: #开发调优
编号:
1666815帖子: https://linux.do/t/topic/1666815
时间: 2026-02-27 19:57:11
摘要:
最近感觉Redis学的一塌糊涂,然后回过头重新学了一遍,本人页只是个无名的菜鸟,希望我总结的内容对大家有帮助或者及时巩固 也希望各位佬多多指点,有时间瞄一瞄互相进步
1.首先Redis是什么?
redis是一个基于内存的键值对的一种NoSQl数据库,是远程词典服务器,他的存储方式是通过key 来获取对应的value值,通常如果你要从一个地方去拿取数据,是不会写一大堆的键值对,是通过把这一类的数据类型写成对应的json数据格式存储到value里面。
Redis的特征
首先是键值型,value支持多种不同的数据结构,约束性不强
redis 的一些命令都是由单线程执行,在网络传输的情况下是多线程
速度非常快,因为基于内存 ,所以他的性能非常高
内存持久化,因为电脑内存在重启后就会消失,所以会定期的去存入磁盘当中
支持主从集群, 如果主数据出现问题,那么从数据就可以提供
多语言都支持
Redis的数据类型
String
Hash
List
Set
SortedSet
以上几种是基本数据类型
GEO
BitMap
HyperLog
这几种属于特殊类型
Redis为了方便我们学习,把操作不同的数据类型的命令做了分组,在官方网站([https://redis.io/commands](https://redis.io/commands)) 可以查看不同的命令
Redis通用命令
KEYS: 查看符合模版的所有key (不适合在生产设备上使用)
DEL:一个指定的key
EXISTS:判断key是否存在
EXPIRE:给一个key设置有效期,有效期到期时该key会被自动删除
TTL:查看一个KEY的剩余有效期
tips: 通过help[command] 可以查看一个命令的具体用法
String类型
字符串类型,是最简单的存储类型
虽然value也是字符串,但是可以根据格式不同,分为string(普通字符串),int(整数),float(浮点类型),他们的底层原理都是字符数组的形式存储
String类型的常
标题: 求推荐一个个人开发者支付对接平台
作者: #Bouty
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666820
时间: 2026-02-27 19:59:21
摘要:
作者: #Bouty
板块: #搞七捻三
编号:
1666820帖子: https://linux.do/t/topic/1666820
时间: 2026-02-27 19:59:21
摘要:
求推荐一个个人开发者支付对接平台
标题: 手里只有 MiniMax 和 GLM,Opencode 再套一层 oh-my-opencode 是多此一举吗?
作者: #Bond
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1666821
时间: 2026-02-27 19:59:37
摘要:
作者: #Bond
板块: #开发调优
编号:
1666821帖子: https://linux.do/t/topic/1666821
时间: 2026-02-27 19:59:37
摘要:
如题,请佬友指点。
标题: 收到了google通知Gemini3.1试用
作者: #kampchen2008
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666822
时间: 2026-02-27 19:59:42
摘要:
作者: #kampchen2008
板块: #搞七捻三
编号:
1666822帖子: https://linux.do/t/topic/1666822
时间: 2026-02-27 19:59:42
摘要:
大家赶紧看看邮件
标题: codex模型怎么抉择最佳
作者: #Tiger Zz Z
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666834
时间: 2026-02-27 20:01:52
摘要:
作者: #Tiger Zz Z
板块: #搞七捻三
编号:
1666834帖子: https://linux.do/t/topic/1666834
时间: 2026-02-27 20:01:52
摘要:
最近体验下来5.3-codex xhigh速度确实快很多,代码理解也不错,但是论质量对我当前场景来说(部分小众业务,非纯代码)5.2 xhgih输出的结果明显更加优秀和精准,但是这个速度真的可以说是蜗牛,慢到离谱,想起有位佬的话“GPT5.2思考很全面,一个小问题也得从白垩纪侏罗纪开始思考”
标题: 关于现在就业环境的变化趋势……
作者: #Jedi_Pz
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666838
时间: 2026-02-27 20:03:22
摘要:
作者: #Jedi_Pz
板块: #搞七捻三
编号:
1666838帖子: https://linux.do/t/topic/1666838
时间: 2026-02-27 20:03:22
摘要:
坐标西安,25 年七月双非本科毕业,工作很不好找,计算机全专业的就业率是靠考研上岸撑起来的,找工作就业的没几个,要么也就是做售后、客服、运维啥的,我在一个内包研发岗,今年情况变化如何?
标题: 做一个程序佬员,小小的梦想是token自由,自己烧钱有点多啊
作者: #yangbs890127
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666841
时间: 2026-02-27 20:04:02
摘要:
作者: #yangbs890127
板块: #搞七捻三
编号:
1666841帖子: https://linux.do/t/topic/1666841
时间: 2026-02-27 20:04:02
摘要:
天天游走于各种cli,cc codex gpt kimi。 开各种账号,也不确定哪个好用,抱着试试的态度,互相review code。 啥时候能token 自由啊
标题: 周五碰友日,不要错过碰一碰了
作者: #HuaFei
板块: #福利羊毛
编号:
帖子: https://linux.do/t/topic/1666847
时间: 2026-02-27 20:05:24
摘要:
作者: #HuaFei
板块: #福利羊毛
编号:
1666847帖子: https://linux.do/t/topic/1666847
时间: 2026-02-27 20:05:24
摘要:
4块也还行吧
标题: antigravity 账号注册问题
作者: #lynn
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666851
时间: 2026-02-27 20:07:14
摘要:
作者: #lynn
板块: #搞七捻三
编号:
1666851帖子: https://linux.do/t/topic/1666851
时间: 2026-02-27 20:07:14
摘要:
今天 antigravity 仅有的两个号也被杀了,想去买号又害怕秒封浪费钱,所以现在想的是直接注册多个谷歌账号来使用免费的 antigravity ,想请教下佬友们,有哪些靠谱的购买渠道吗?或者如果自己注册谷歌账号的话,一个手机号最多能注册几个谷歌账号?
标题: 有fiat42的affman吗
作者: #半仙
板块: #福利羊毛
编号:
帖子: https://linux.do/t/topic/1666853
时间: 2026-02-27 20:07:41
摘要:
作者: #半仙
板块: #福利羊毛
编号:
1666853帖子: https://linux.do/t/topic/1666853
时间: 2026-02-27 20:07:41
摘要:
准备注册fiat42,有能返的嘛
标题: grok没有deepsearch了?
作者: #agi_is_coming
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666854
时间: 2026-02-27 20:07:47
摘要:
作者: #agi_is_coming
板块: #搞七捻三
编号:
1666854帖子: https://linux.do/t/topic/1666854
时间: 2026-02-27 20:07:47
摘要:
现在grok的deepsearch被取消了吗,我在手机app界面和电脑网页端界面都没找到了?
翻遍了网上的解答,各种设置里面也找了,没有打开deepsearch的按钮?
标题: 发现一款超级好用的超级支付
作者: #北橘
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1666856
时间: 2026-02-27 20:08:18
摘要:
作者: #北橘
板块: #开发调优
编号:
1666856帖子: https://linux.do/t/topic/1666856
时间: 2026-02-27 20:08:18
摘要:
超级支付 - 免费开箱即用一站式聚合支付系统官网
免费使用 我搭建一下感觉还不错
标题: Google Antigravity 最伟大更新!尤其对封号用户!
作者: #Davon
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666864
时间: 2026-02-27 20:11:15
摘要:
作者: #Davon
板块: #搞七捻三
编号:
1666864帖子: https://linux.do/t/topic/1666864
时间: 2026-02-27 20:11:15
摘要:
当我看到时候的表情:
你礼貌吗?
标题: 明天上海国补第五轮可以摇号了,希望抽中
作者: #liuweiqing
板块: #前沿快讯
编号:
帖子: https://linux.do/t/topic/1666865
时间: 2026-02-27 20:12:35
摘要:
作者: #liuweiqing
板块: #前沿快讯
编号:
1666865帖子: https://linux.do/t/topic/1666865
时间: 2026-02-27 20:12:35
摘要:
2.28零点报名
不怎么玩游戏,主要送外卖,买荣耀X70,1390元可以吗?
开发调优
[Screenshot_2026-02-24-10-18-11-549_com.xunmeng.pinduoduo]
主要看中的是大电池,还有防水功能。
我能不能买手机就靠国补了
标题: 基于的MinerU的API调用封装为ClaudeCode中的subagents的建议?
作者: #ExplorerQvQ
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666868
时间: 2026-02-27 20:14:20
摘要:
作者: #ExplorerQvQ
板块: #搞七捻三
编号:
1666868帖子: https://linux.do/t/topic/1666868
时间: 2026-02-27 20:14:20
摘要:
这个问题来自这里。
在claudecode的工作流中创建专门用于PDF文件解析的subagents是否有推荐?
mineru 支持api调用,写个脚本,交个agent调用
这是个好主意,于是在投喂了「MinerU」和「ClaudeCode关于subangent」的文档之后,大语言模型给了我如下的方案…
处于用户目录\.claude\agents\下:
脚本文件mineru_tool.py
import os
import sys
import time
import requests
import zipfile
import io
API_TOKEN = "YOUR_MINERU_TOKEN_HERE"
# 虽然把API暴露在代码中不好,但是我的实际需求中并不需要开源,而且API有效期只有14天,我懒o(* ̄▽ ̄*)ブ
BASE_URL = "https://mineru.net/api/v4"
HEADERS = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_TOKEN}"
}
def parse_file(file_path):
if not os.path.exists(file_path):
print(f"Error: File not found at {file_path}")
sys.exit(1)
file_name = os.path.basename(file_path)
batch_url = f"{BASE_URL}/file-urls/batch"
payload = {
"files": [{"name": file_name, "data_id": f"local_{int(time.time())}"}],
"model_version": "vlm"
}
try:
resp = requests.post(batch_url, headers=HEADERS, json=payload)
if resp.status_code != 200 or resp.json().get('code') != 0:
print(f"Error requesting upload URL: {resp.text}")
sys.exit(1)
data = resp.json()['data']
batch_id = data['batch_id']
upload_url = data['file_urls'][0]
with open(file_path, 'rb') as f:
put_resp = requests.put(upload_url, data=f)
if put_resp.status_code != 200:
print(f"Error uploading file: {put_resp.status_code}")
sys.exit(1)
result_url = f"{BASE_URL}/extract-results/batch/{batch_id}"
zip_download_url = None
for _ in range(60):
status_resp = requests.get(result_url, headers=HEADERS)
if status_resp.status_code == 200:
res_data = status_resp.json()['data']
file_result = res_data['extract_result'][0]
state = file_result['state']
if state == 'done':
zip_download_url = file_result['full_zip_url']
break
elif state == 'failed':
print(f"Parsing failed: {file_result.get('err_msg')}")
sys.exit(1)
else:
time.sleep(2)
else:
time.sleep(2)
if not zip_download_url:
print("Timeout waiting for parsing result.")
sys.exit(1)
zip_resp = requests.get(zip_download_url)
output_dir = os.path.join(os.getcwd(), f"mineru_output_{batch_id}")
os.makedirs(output_dir, exist_ok=True)
with zipfile.ZipFile(io.BytesIO(zip_resp.content)) as z:
z.extractall(output_dir)
md_file_path = None
for root, dirs, files in os.walk(output_dir):
for file in files:
if file.endswith('.md'):
md_file_path = os.path.join(root, file)
break
if md_file_path:
print(f"RESULT_PATH: {os.path.abspath(md_file_path)}")
else:
print("Error: No markdown file found in result.")
sys.exit(1)
except Exception as e:
print(f"Exception occurred: {str(e)}")
sys.exit(1)
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python mineru_tool.py <file_path>")
sys.exit(1)
parse_file(sys.argv[1])
Subagents文件 mineru.md
---
name: mineru
description: Portable Agent that parses local PDF/DOCX/Images into Markdown using the MinerU API and a bundled python script.
tools: Bash, Read
model: sonnet
---
You are a portable document parsing specialist using the MinerU engine.
Your workflow is:
1. **Locate File**: Identify the local file path provided by the user.
2. **Run Bundled Script**: Execute the python script located in the user's agent directory.
*
标题: 抽一个阿里 coding plan
作者: #liu juntao
板块: #国产替代
编号:
帖子: https://linux.do/t/topic/1666874
时间: 2026-02-27 20:16:48
摘要:
作者: #liu juntao
板块: #国产替代
编号:
1666874帖子: https://linux.do/t/topic/1666874
时间: 2026-02-27 20:16:48
摘要:
买了个阿里百炼的Coding Plan,想尝尝鲜,但是发现根本用不着,所以别浪费,抽个奖送给佬友们用
标题: 米哈游回应员工意外离世:不存在春节加班,网传 3 万元抚慰金为不实信息
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #前沿快讯
编号:
帖子: https://linux.do/t/topic/1666881
时间: 2026-02-27 20:18:13
摘要:
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #前沿快讯
编号:
1666881帖子: https://linux.do/t/topic/1666881
时间: 2026-02-27 20:18:13
摘要:
米哈游回应员工意外离世:不存在春节加班,网传 3 万元抚慰金为不实信息 - IT之家
标题: 高端的黑客,往往使用最简单的攻击方式
作者: #Ben2008
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1666889
时间: 2026-02-27 20:19:59
摘要:
作者: #Ben2008
板块: #搞七捻三
编号:
1666889帖子: https://linux.do/t/topic/1666889
时间: 2026-02-27 20:19:59
摘要: