summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/classes/cache_entry.php')
-rw-r--r--shared/classes/cache_entry.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/shared/classes/cache_entry.php b/shared/classes/cache_entry.php
new file mode 100644
index 0000000..4395632
--- /dev/null
+++ b/shared/classes/cache_entry.php
@@ -0,0 +1,21 @@
+<?php
+class sql_cache_entry extends sql_row_obj {
+ protected $table='cache', $primary_key=array('type', 'key'), $columns=array(
+ 'type' => array (
+ 'type' => 'ENUM',
+ 'length' => '\'cd\',\'portage\',\'stage3\'',
+ 'not_null' => true
+ ),
+ 'key' => array (
+ 'type' => 'VARCHAR',
+ 'length' => 255,
+ 'not_null' => true
+ ),
+ 'file' => array (
+ 'type' => 'VARCHAR',
+ 'length' => 255
+ )
+
+ );
+}
+?>