"structure"
Bootstrap 3.3.0 Snippet by irinashuvalova

1
2
3
4
5
6
7
8
9
10
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Web.Caching;
namespace
{
public class StructureNode
{
private const string STRUCTURE_CACHE_KEY = "STRUCTURE_CACHE";
public static bool StructureCached
{
get
{
var cache = HttpRuntime.Cache.Get(STRUCTURE_CACHE_KEY);
return !(cache == null || cache is string);
}
}
public static void CreateStructureCache()
{
if (HttpRuntime.Cache.Get(STRUCTURE_CACHE_KEY) != null)
return;
Task.Run(() =>
{
var sw = new Stopwatch();
HttpRuntime.Cache.Insert(STRUCTURE_CACHE_KEY, "?", null, Cache.NoAbsoluteExpiration, new TimeSpan(24, 0, 0), CacheItemPriority.Normal, null);
sw.Start();
var items = GetItems();
sw.Stop();
HttpRuntime.Cache.Insert(STRUCTURE_CACHE_KEY, items, null, Cache.NoAbsoluteExpiration, new TimeSpan(24, 0, 0), CacheItemPriority.Normal, null);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: