07 2021 档案
摘要:mysql链接池使用 import time import pymysql import threading from DBUtils.PooledDB import PooledDB, SharedDBConnection POOL = PooledDB( creator=pymysql, # 使
阅读全文
posted @ 2021-07-14 16:04
小俞先生
摘要:Celery 官方 Celery 官网:http://www.celeryproject.org/ Celery 官方文档英文版:http://docs.celeryproject.org/en/latest/index.html Celery 官方文档中文版:http://docs.jinkan.
阅读全文
posted @ 2021-07-14 13:36
小俞先生
摘要:一、缓存处理流程 前台请求,后台先从缓存中取数据,取到直接返回结果,取不到时从数据库中取,数据库取到更新缓存,并返回结果,数据库也没取到,那直接返回空结果。 二、缓存穿透 描述: 缓存穿透是指缓存和数据库中都没有的数据,而用户不断发起请求,如发起为id为“-1”的数据或id为特别大不存在的数据。
阅读全文
posted @ 2021-07-14 10:06
小俞先生

浙公网安备 33010602011771号