示例#1
0
        internal SqliteCache(ISqliteCacheStorage storage, long maxSize)
        {
            if (storage == null)
            {
                throw new ArgumentNullException("storage", "storage cannot be null.");
            }

            this.storage = storage;
            this.maxSize = maxSize > 0 ? maxSize : 0;
        }
示例#2
0
        private void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                }

                this.storage = null;
                this.disposed = true;
            }
        }