> **Experimental**
>
> `@aws-cdk/aws-elasticache-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# ServerlessCacheGrants

Collection of grant methods for a IServerlessCacheRef.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: Generated code

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as elasticache_alpha from '@aws-cdk/aws-elasticache-alpha';
import { aws_elasticache as interfaces_elasticache } from 'aws-cdk-lib/interfaces';

declare const serverlessCacheRef: interfaces_elasticache.IServerlessCacheRef;
const serverlessCacheGrants = elasticache_alpha.ServerlessCacheGrants.fromServerlessCache(serverlessCacheRef);
```

## Methods

- `actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grant` — Grant the given identity custom permissions.

- `connect(grantee: IGrantable): Grant` — Grant connect permissions to the cache.

- `fromServerlessCache(resource: IServerlessCacheRef): ServerlessCacheGrants // chainable` (static) — Creates grants for ServerlessCacheGrants.
