Perry Riley Jr. Perry Riley Jr. closes in on Cole Beasley. (John McDonnell/The Washington Post)

The Washington Redskins have reached an agreement to retain inside linebacker Perry Riley, the team announced.

Terms of the deal were not immediately available. The Redskins had maintained that re-signing Riley ranked high on their list of priority moves for the offseason. The two sides remained far apart on a deal as recently as last week. The fifth-year linebacker tested the waters of free agency during this past weekend’s negation period. But the Redskins and Riley came to an agreement Monday evening  a day before free agency’s official start at 4 p.m. Tuesday.

Riley, a fourth-round pick out of LSU in 2010, led Washington with 115 tackles this past season. He also recorded three sacks and an interception.

He is expected to take on a larger play-making role with London Fletcher now retired.

Have a Redskins question? E-mail Mike Jones at with the subject line “Mailbag question” for him to answer it in The Mailbag on Tuesdays.

More from The Post:

Redskins sign WR Roberts from Cardinals | $18.6 million in cap space

Where the Redskins stand as ‘signing day’ begins

All Redskins free agency posts | NFL news | NFL transactions 

The Early Lead: Free agents to watch | Revis on trading block | More NFL

D.C. Sports Bog: Fletcher wants Revis in D.C. | Gruden, blitz fanatic | More

Follow: @MikeJonesWaPo | @MarkMaske | @Insider | Insider on Facebook