using Newtonsoft.Json; using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIMS.RedisMng { public class RedisContext : IRedisContext { private readon…
更新表数据: update table_name set xxx=xxx where condition; 增加字段: alter table table_name add field type other; e.g: ) '; 删除字段: ALTER TABLE table_name DROP field_name; 增加删除索引: # 增加 alter table 表名 add index 索引名 (字段名1[,字段名2 …]); # 删除 alter table 表名 drop index…
Redis简单增删改查例子 例一:字符串的增删改查 #增加一个key为ay_key的值 127.0.0.1:6379> set ay_key "ay" OK #查询ay_key的值 127.0.0.1:6379> get ay_key "ay" #修改ay_key的值 127.0.0.1:6379> set ay_key "new_ay" OK 127.0.0.1:6379> get ay_key "new_ay…
大家的项目中不可避免的使用到SQLite,为此我们要花费心思编写一个增删改查框架.而一个好的ORM框架则能够给我们带来极大的方便,今天给大家讲解一个非常火热的ORM-GreenDao. 基本概念 GreenDao官网地址:http://greenrobot.org/greendao/ 官网对GreenDao的介绍: greenDAO is an open source library for Android providing an easy-to-use interface to SQLite…