1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
cachehitratetable.php
См. документацию.
1<?php
2
4
11
45
47{
53 public static function getTableName()
54 {
55 return 'b_perf_cache_hitrate';
56 }
57
63 public static function getMap()
64 {
65 return [
66 new IntegerField(
67 'ID',
68 [
69 'primary' => true,
70 'autocomplete' => true,
71 ]
72 ),
73 new StringField(
74 'HASH',
75 [
76 'required' => true,
77 'validation' => function ()
78 {
79 return[
80 new LengthValidator(null, 255),
81 ];
82 },
83 ]
84 ),
85 new IntegerField(
86 'CACHE_SIZE',
87 [
88 'default' => 0,
89 ]
90 ),
91 new StringField(
92 'MODULE_ID',
93 [
94 'validation' => function ()
95 {
96 return[
97 new LengthValidator(null, 255),
98 ];
99 },
100 ]
101 ),
102 new StringField(
103 'BASE_DIR',
104 [
105 'validation' => function ()
106 {
107 return[
108 new LengthValidator(null, 255),
109 ];
110 },
111 ]
112 ),
113 new StringField(
114 'INIT_DIR',
115 [
116 'validation' => function ()
117 {
118 return[
119 new LengthValidator(null, 255),
120 ];
121 },
122 ]
123 ),
124 new StringField(
125 'FILE_NAME',
126 [
127 'validation' => function ()
128 {
129 return[
130 new LengthValidator(null, 255),
131 ];
132 },
133 ]
134 ),
135 new IntegerField(
136 'READ_COUNT',
137 [
138 'default' => 0,
139 ]
140 ),
141 new IntegerField(
142 'WRITE_COUNT',
143 [
144 'default' => 0,
145 ]
146 ),
147 new IntegerField(
148 'CLEAN_COUNT',
149 [
150 'default' => 0,
151 ]
152 ),
153 new FloatField(
154 'RATE',
155 [
156 'default' => 0,
157 'size' => 1,
158 ]
159 ),
160 ];
161 }
162}