@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
95 lines (51 loc) • 1.7 kB
Markdown
[**@clickup/ent-framework**](../README.md)
***
[@clickup/ent-framework](../globals.md) / IDsCacheReadable
# Class: IDsCacheReadable
Defined in: [src/ent/predicates/Predicate.ts:46](https://github.com/clickup/ent-framework/blob/master/src/ent/predicates/Predicate.ts#L46)
## Extends
- [`IDsCache`](IDsCache.md)
## Constructors
### new IDsCacheReadable()
> **new IDsCacheReadable**(): [`IDsCacheReadable`](IDsCacheReadable.md)
#### Returns
[`IDsCacheReadable`](IDsCacheReadable.md)
#### Inherited from
[`IDsCache`](IDsCache.md).[`constructor`](IDsCache.md#constructors)
## Methods
### has()
> **has**(`id`): `boolean`
Defined in: [src/ent/IDsCache.ts:6](https://github.com/clickup/ent-framework/blob/master/src/ent/IDsCache.ts#L6)
#### Parameters
| Parameter | Type |
| ------ | ------ |
| `id` | `string` |
#### Returns
`boolean`
#### Inherited from
[`IDsCache`](IDsCache.md).[`has`](IDsCache.md#has)
***
### add()
> **add**(`id`, `value`): `void`
Defined in: [src/ent/IDsCache.ts:10](https://github.com/clickup/ent-framework/blob/master/src/ent/IDsCache.ts#L10)
#### Parameters
| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `id` | `string` | `undefined` |
| `value` | `boolean` | `true` |
#### Returns
`void`
#### Inherited from
[`IDsCache`](IDsCache.md).[`add`](IDsCache.md#add)
***
### get()
> **get**(`id`): `undefined` \| `boolean`
Defined in: [src/ent/IDsCache.ts:14](https://github.com/clickup/ent-framework/blob/master/src/ent/IDsCache.ts#L14)
#### Parameters
| Parameter | Type |
| ------ | ------ |
| `id` | `string` |
#### Returns
`undefined` \| `boolean`
#### Inherited from
[`IDsCache`](IDsCache.md).[`get`](IDsCache.md#get)