Entering lunarvim changes the default cursor type of terminal.
Add the following lines to your config.lua
lvim.autocommands = {
{
"VimLeave",
import redis | |
import json | |
from datetime import datetime, timedelta | |
from redis.exceptions import ResponseError | |
r = redis.Redis(host='localhost', port=6379, db=0, decode_responses=True) | |
now = datetime.now() | |
# 过期天数 | |
three_days_from_now = now + timedelta(days=30) |