35 lines
568 B
C#
35 lines
568 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace upper_limit_crawler
|
|
{
|
|
public class ULDB
|
|
{
|
|
const string DBNAME = "DB";
|
|
|
|
public ULDB()
|
|
{
|
|
}
|
|
|
|
public void Insert<T>(string strKey, T Value)
|
|
{
|
|
BinaryRage.DB.Insert(strKey, Value, DBNAME);
|
|
}
|
|
|
|
public T Get<T>(string strKey)
|
|
{
|
|
object data = BinaryRage.DB.Get<T>(strKey, DBNAME);
|
|
return (T)data;
|
|
}
|
|
|
|
public bool IsExist(string strKey)
|
|
{
|
|
return BinaryRage.DB.Exists(strKey, DBNAME);
|
|
}
|
|
}
|
|
}
|