-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
58 lines (54 loc) · 2.05 KB
/
Copy pathindex.php
File metadata and controls
58 lines (54 loc) · 2.05 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/front-end/front.css">
<title>Cache System</title>
</head>
<body>
<div class="container">
<h1>Cache System</h1>
<!-- Section: Add New Data -->
<div class="form-section">
<h2>➕ Add New Data</h2>
<div class="form-group">
<label for="key">Key:</label>
<input type="text" id="key" placeholder="Example: username">
</div>
<div class="form-group">
<label for="value">Value:</label>
<input type="text" id="value" placeholder="Example: Ahmed">
</div>
<div class="form-group">
<label for="ttl">Time To Live (TTL) in seconds:</label>
<input type="number" id="ttl" value="60" placeholder="Example: 60">
</div>
<div class="actions">
<button onclick="createData()">💾 Save Data</button>
<button onclick="updateData()" class="btn-get">✏️ Update Data</button>
</div>
</div>
<!-- Section: Retrieve Data -->
<div class="form-section">
<h2>🔍 Retrieve Data</h2>
<div class="form-group">
<label for="getKey">Key:</label>
<input type="text" id="getKey" placeholder="Enter key to search">
</div>
<div class="actions">
<button onclick="getData()" class="btn-get">🔎 Get Data</button>
<button onclick="deleteData()" class="btn-delete">🗑️ Delete Data</button>
</div>
</div>
<!-- Section: Results -->
<div class="form-section">
<h2>📊 Results</h2>
<div id="result" class="result">
<p>Results will appear here...</p>
</div>
</div>
</div>
<script src="/front-end/front.js"></script>
</body>
</html>