-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCacheNative.tsx
More file actions
53 lines (51 loc) · 1.64 KB
/
CacheNative.tsx
File metadata and controls
53 lines (51 loc) · 1.64 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
import React, { ReactElement } from 'react'
import { FormGroup, Card, Col, CardBody } from 'Components'
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
import GluuToogleRow from 'Routes/Apps/Gluu/GluuToogleRow'
import { CACHE } from 'Utils/ApiResources'
import { useTranslation } from 'react-i18next'
import type { CacheNativeProps } from './types'
function CacheNative({ formik }: CacheNativeProps): ReactElement {
const { t } = useTranslation()
return (
<Card>
<CardBody>
<FormGroup row>
<Col xs="12" style={{ fontSize: 24, fontWeight: 'bold', marginBottom: 15 }}>
{t('fields.native_persistence_configuration')}:
</Col>
</FormGroup>
<GluuInputRow
label="fields.default_put_expiration"
name="nativeDefaultPutExpiration"
type="number"
lsize={6}
rsize={6}
formik={formik}
value={formik.values.nativeDefaultPutExpiration || 0}
doc_category={CACHE}
/>
<GluuInputRow
label="fields.default_cleanup_batch_size"
name="defaultCleanupBatchSize"
type="number"
lsize={6}
rsize={6}
formik={formik}
value={formik.values.defaultCleanupBatchSize || 0}
doc_category={CACHE}
/>
<GluuToogleRow
label="fields.delete_expired_on_get_request"
name="deleteExpiredOnGetRequest"
lsize={6}
rsize={6}
formik={formik}
value={formik.values.deleteExpiredOnGetRequest}
doc_category={CACHE}
/>
</CardBody>
</Card>
)
}
export default CacheNative